Skip to content
Permalink
Browse files

Update staking-integrations.md

  • Loading branch information...
thanhson1085 committed Sep 2, 2019
1 parent 70835a4 commit e7c1ea55ac3364f48d42c1ecfb1ecb34b83cf53d
Showing with 15 additions and 0 deletions.
  1. +15 −0 docs/developers/staking-integrations.md
@@ -173,3 +173,18 @@ web3.eth.getBlockNumber().then(blockNumber => {
}).catch(e => console.log(e))
```

## Get list candidates
You can get list candidates from [RPC endpoint](https://apidocs.tomochain.com/?shell#eth_getcandidates):
```
curl https://rpc.tomochain.com \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getCandidates","params": ["latest"],"id":1}'
```
Or [get list candidates from TomoMaster](https://apidocs.tomochain.com/?shell#tomomaster-apis-candidates):
```
curl -X GET https://master.tomochain.com/api/candidates \
-H 'Accept: application/json'
```

0 comments on commit e7c1ea5

Please sign in to comment.
You can’t perform that action at this time.