description |
---|
hmy_getDelegationsByDelegatorAndValidator |
String
- delegator bech32 address.String
- validator bech32 address.
Array of:
validator_address
-String
- validator bech32 addressdelegator_address
-String
- delegator bech32 addressamount
-Number
- big.Int amount delegated to validatorreward
-Number
- big.Int reward to validator for delegationUndelegations
-[]RPCUndelegation
:amount
-Number
- big.Int amount returned to delegatorreward
-Number
- big.Int reward to validator
Sample Curl Request
curl -d '{
"jsonrpc":"2.0",
"method":"hmy_getDelegationsByDelegatorAndValidator",
"params":[
"one1km7xg8e3xjys7azp9f4xp8hkw79vm2h3f2lade",
"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k"
],
"id":1
}' -H 'Content-Type:application/json' -X POST 'https://api.s0.b.hmny.io'
Sample Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"validator_address": "one1km7xg8e3xjys7azp9f4xp8hkw79vm2h3f2lade",
"delegator_address": "one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k",
"amount": 9899000000000000000000,
"reward": 2474220695683427208655,
"Undelegations": []
}
]
}