getdelegatedresource - Tron
getdelegatedresource. Returns the resource delegation details between two specific accounts.
getdelegatedresource - tron [Value: 20CU]
Returns the resource delegation details between two specific accounts.
Use cases
- Also available as GET
- Check how much bandwidth/energy one account currently delegates to another
Constraints
- Covers the legacy (Stake 1.0) delegation model; use getdelegatedresourcev2 for Stake 2.0
- Also available under /walletsolidity/ for confirmed (solidified) data instead of the latest state
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/getdelegatedresource \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"fromAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "toAddress": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'Response
200
{
"delegatedResource": [
{ "from": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e", "to": "414c8967080d86f3d0e1352a42f9213c7b9dd03b0f", "frozen_balance_for_bandwidth": 1000000 }
]
}Request params
idinteger
jsonrpcstring
methodstring
object
fromAddressstring
[Required for GET] The delegating account's address
toAddressstring
[Required for GET] The receiving account's address
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Returns the resource delegation details between two specific accounts.Response params
object
delegatedResourcearray_of_objects
List of active delegations between the two addresses (legacy model)