Created
August 21, 2018 02:28
-
-
Save blake41/7ab41f3af647ab3f9be6d8e4026750f3 to your computer and use it in GitHub Desktop.
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
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