hmy_getDelegationsByDelegatorAndValidator
hmy_getDelegationsByDelegatorAndValidator

Parameters

  1. 1.
    String - delegator bech32 address.
  2. 2.
    String - validator bech32 address.

Returns

Array of:
  • validator_address - String - validator bech32 address
  • delegator_address - String - delegator bech32 address
  • amount - Number - big.Int amount delegated to validator
  • reward - Number - big.Int reward to validator for delegation
  • Undelegations - []RPCUndelegation:
    • amount - Number - big.Int amount returned to delegator
    • reward - Number - big.Int reward to validator
Sample Curl Request
1
curl -d '{
2
"jsonrpc":"2.0",
3
"method":"hmy_getDelegationsByDelegatorAndValidator",
4
"params":[
5
"one1km7xg8e3xjys7azp9f4xp8hkw79vm2h3f2lade",
6
"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k"
7
],
8
"id":1
9
}' -H 'Content-Type:application/json' -X POST 'http://api.s0.b.hmny.io'
Copied!
Sample Curl Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"validator_address": "one1km7xg8e3xjys7azp9f4xp8hkw79vm2h3f2lade",
7
"delegator_address": "one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k",
8
"amount": 9899000000000000000000,
9
"reward": 2474220695683427208655,
10
"Undelegations": []
11
}
12
]
13
}
Copied!
Export as PDF
Copy link