getdelegatedresourcev2 - Tron
getdelegatedresourcev2. Returns the Stake 2.0 resource delegation details between two specific accounts.
getdelegatedresourcev2 - tron [Value: 20CU]
Returns the Stake 2.0 resource delegation details between two specific accounts.
Use cases
- Also availavble as GET
- Check how much stake one account currently delegates to another under Stake 2.0
Constraints
- Stake 2.0 equivalent of getdelegatedresource
- 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/getdelegatedresourcev2 \
--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_energy": 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 Stake 2.0 resource delegation details between two specific accounts.Response params
object
delegatedResourcearray_of_objects
List of active Stake 2.0 delegations between the two addresses