TRON
wallet/getcandelegatedmaxsize20クレジット
Returns the maximum amount of staked TRX an account can still delegate.
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
| owner_address | string | Account address (base58 or hex). |
| type | number | Resource type: 0 = bandwidth, 1 = energy. |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (任意) |
戻り値
型
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.
コード例
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
}'