Skip to content

Instantly share code, notes, and snippets.

@blake41
Created August 21, 2018 02:28
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 blake41/7ab41f3af647ab3f9be6d8e4026750f3 to your computer and use it in GitHub Desktop.
Save blake41/7ab41f3af647ab3f9be6d8e4026750f3 to your computer and use it in GitHub Desktop.
LivepeerSDK({provider: 'https://rinkeby.infura.io'}).then(async (sdk) => {
// Once initialized, you can access the methods under the `rpc` namespace
const { rpc } = sdk
// For example, you can get the total supply of Livepeer Tokens like so
const jobs = await rpc.getJobs({broadcaster: '0xa452a1824ac4609Ab93d8b8a442b04847a6Aee01'})
console.log(jobs[0])
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment