TarifsGitHubTableau de bord

TRON

wallet/getdelegatedresourcev225 crédits

Returns the resources delegated from one account to another (Stake 2.0).

Réseau: tron

Paramètres

NomTypeDescription
fromAddressstringAddress of the account that delegates the resource.
toAddressstringAddress of the account that receives the resource.
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (facultatif)

Valeur renvoyée

Type

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.

Exemples de code

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
}'