Skip to content

Instantly share code, notes, and snippets.

@feruzm
Created August 29, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feruzm/deaeadb6aeabf8e9ee5a3fabeb248ba3 to your computer and use it in GitHub Desktop.
Save feruzm/deaeadb6aeabf8e9ee5a3fabeb248ba3 to your computer and use it in GitHub Desktop.
how to fetch witness list with dsteem
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