PreçosGitHubPainel

TRON

wallet/getcandelegatedmaxsize20 créditos

Returns the maximum amount of staked TRX an account can still delegate.

Rede: tron

Parâmetros

NomeTipoDescrição
owner_addressstringAccount address (base58 or hex).
typenumberResource type: 0 = bandwidth, 1 = energy.
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (opcional)

Retorno

Tipo

Object

Object with max_size, the Stake 2.0 principal (in sun) that can be delegated for the chosen resource; {} when the amount is 0 or the account does not exist.

Exemplos de código

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