LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
Returns the compressed token accounts owned by a certain account.
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountsByOwner",
"params": {
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
}
}'
{
"context": {
"slot": 100
},
"value": {
"cursor": "3J98t1WpEZ73CNm",
"items": [
{
"account": {
"address": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
},
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"seq": 100,
"slotCreated": 100,
"tree": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
},
"tokenData": {
"amount": 100,
"delegate": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"state": "initialized",
"tlv": "SGVsbG8sIFdvcmxkIQ=="
}
}
]
}
}
Successfully retrieved compressed token accounts from the Solana blockchain for the specified wallet owner
The response is of type object
.
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedTokenAccountsByOwner",
"params": {
"cursor": "3J98t1WpEZ73CNm",
"limit": 1,
"mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
}
}'
{
"context": {
"slot": 100
},
"value": {
"cursor": "3J98t1WpEZ73CNm",
"items": [
{
"account": {
"address": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
},
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"seq": 100,
"slotCreated": 100,
"tree": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9"
},
"tokenData": {
"amount": 100,
"delegate": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"mint": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"owner": "11111115q4EpJaTXAZWpCg3J2zppWGSZ46KXozzo9",
"state": "initialized",
"tlv": "SGVsbG8sIFdvcmxkIQ=="
}
}
]
}
}