GetDelegatedResource
Returns all resources delegations during stake1.0 phase from an account to another account. The fromAddress can be retrieved from the GetDelegatedResourceAccountIndex API.
This method will use 30
Compute Units.
Parameters
fromAddress
- String - Required - Energy from address, default hexString.toAddress
- String - Required - Energy delegation information.visible
- Boolean - Optional. Specifies whether the address is in Base58 format (default: false).
Returns
delegatedResource - List: A list of resources that an address delegates to a target address. A DelegatedResource object contains the following fields:
from
string
delegate account
to
string
resource receiving account
frozen_balance_for_bandwidth
int64
bandwidth delegate share
frozen_balance_for_energy
int64
energy delegate share
expire_time_for_bandwidth
int64
Deadline of this delegate bandwidth's lock period
expire_time_for_energy
int64
Deadline of this delegate energy's lock period
// Result
{}
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/wallet/getdelegatedresource \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"toAddress": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",
"visible": true
}
'
Last updated
Was this helpful?