TRON
wallet/getdelegatedresourcev225 créditos
Returns the resources delegated from one account to another (Stake 2.0).
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| fromAddress | string | Address of the account that delegates the resource. |
| toAddress | string | Address of the account that receives the resource. |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (opcional) |
Retorno
Tipo
Object
Object with a delegatedResource array (from, to, frozen_balance_for_bandwidth, frozen_balance_for_energy, expire_time_for_bandwidth, expire_time_for_energy; balances in sun, times in ms); {} when nothing matches.
Exemplos de código
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getdelegatedresourcev2' \
-X POST \
-H 'content-type: application/json' \
-d '{
"fromAddress": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"toAddress": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"visible": true
}'