getdelegatedresourceaccountindexv2 - Tron
getdelegatedresourceaccountindexv2. Returns the Stake 2.0 list of accounts an address has delegated resources to or from.
getdelegatedresourceaccountindexv2 - tron [Value: 20CU]
Returns the Stake 2.0 list of accounts an address has delegated resources to or from.
Use cases
- Also available as GET
- Audit a wallet's outgoing and incoming Stake 2.0 resource delegations
Constraints
- Stake 2.0 equivalent of getdelegatedresourceaccountindex
- 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/getdelegatedresourceaccountindexv2 \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"value": "example", "visible": true}'Response
200
{
"account": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"toAccounts": ["414c8967080d86f3d0e1352a42f9213c7b9dd03b0f"],
"fromAccounts": []
}Request params
idinteger
jsonrpcstring
methodstring
object
valuestring
[Required for GET] The account address to look up
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Returns the Stake 2.0 list of accounts an address has delegated resources to or from.Response params
object
accountstring
The queried account's address
toAccountsarray_of_strings
Accounts this address has delegated resources to under Stake 2.0
fromAccountsarray_of_strings
Accounts that have delegated resources to this address under Stake 2.0