Created
August 29, 2018 09:30
-
-
Save feruzm/deaeadb6aeabf8e9ee5a3fabeb248ba3 to your computer and use it in GitHub Desktop.
how to fetch witness list with dsteem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as dsteem from 'dsteem' | |
const client = new dsteem.Client('https://api.steemit.com') | |
export default async function main() { | |
const witnesses = await client.database.call('get_witnesses_by_vote', ["",100]); | |
console.log(witnesses) // Open your browser's console to see full output | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment