hmy_getDelegationsByDelegator

hmy_getDelegationsByDelegator

Parameters

  1. String - delegator 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

curl -d '{
    "jsonrpc":"2.0",
    "method":"hmy_getDelegationsByDelegator",
    "params":[
      "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": []
        }
    ]
}

Last updated