New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
Returns the compressed token accounts that are partially or fully delegated to the given delegate.
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountsByDelegate",
"params": {
"delegate": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
}
}
'{
"context": {
"slot": 100
},
"value": {
"items": [
{
"account": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"seq": 100,
"slotCreated": 100,
"tree": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"address": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
}
},
"tokenData": {
"amount": 100,
"mint": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"owner": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"state": "initialized",
"delegate": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"tlv": "SGVsbG8sIFdvcmxkIQ=="
}
}
],
"cursor": "3J98t1WpEZ73CNm"
}
}The version of the JSON-RPC protocol.
2.0 An ID to identify the request.
The name of the method to invoke.
getCompressedTokenAccountsByDelegate Show child attributes
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
A base 58 encoded string.
"3J98t1WpEZ73CNm"
x >= 0A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
Successfully retrieved compressed token accounts by delegate from the Solana blockchain
Show child attributes
Show child attributes
Show child attributes
A 32-byte hash represented as a base58 string.
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
100
100
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
100
100
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
Show child attributes
A base 64 encoded string.
"SGVsbG8sIFdvcmxkIQ=="
A 32-byte hash represented as a base58 string.
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
100
Show child attributes
100
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
initialized, frozen A Solana public key represented as a base58 string.
"11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
A base 64 encoded string.
"SGVsbG8sIFdvcmxkIQ=="
A base 58 encoded string.
"3J98t1WpEZ73CNm"
Was this page helpful?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountsByDelegate",
"params": {
"delegate": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V"
}
}
'{
"context": {
"slot": 100
},
"value": {
"items": [
{
"account": {
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"seq": 100,
"slotCreated": 100,
"tree": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"address": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
}
},
"tokenData": {
"amount": 100,
"mint": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"owner": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"state": "initialized",
"delegate": "11111116EPqoQskEM2Pddp8KTL9JdYEBZMGF3aq7V",
"tlv": "SGVsbG8sIFdvcmxkIQ=="
}
}
],
"cursor": "3J98t1WpEZ73CNm"
}
}