ТарифыGitHubКабинет

TRON

wallet/getdelegatedresourceКредиты: 25

Returns the resources delegated from one account to another.

Сеть: tron

Параметры

ИмяТипОписание
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. (необязательно)

Результат

Тип

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.

Примеры кода

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getdelegatedresource' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "fromAddress": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
  "toAddress": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
  "visible": true
}'