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 owner’s compressed accounts.
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getCompressedAccountsByOwner",
"params": {
"owner": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"dataSlice": {
"length": 1,
"offset": 1
},
"filters": [
{
"memcmp": {
"bytes": "3J98t1WpEZ73CNm",
"offset": 1
}
}
],
"limit": 1
}
}
'{
"context": {
"slot": 100
},
"value": {
"items": [
{
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"seq": 100,
"slotCreated": 100,
"tree": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"address": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
}
}
],
"cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
}
}The version of the JSON-RPC protocol.
2.0 An ID to identify the request.
The name of the method to invoke.
getCompressedAccountsByOwner Show child attributes
A Solana public key represented as a base58 string.
"11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7"
A 32-byte hash represented as a base58 string.
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
x >= 0Successfully retrieved compressed accounts by owner from the Solana blockchain
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.
"11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7"
100
100
A Solana public key represented as a base58 string.
"11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7"
A Solana public key represented as a base58 string.
"11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7"
Show child attributes
A base 64 encoded string.
"SGVsbG8sIFdvcmxkIQ=="
A 32-byte hash represented as a base58 string.
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
100
A 32-byte hash represented as a base58 string.
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
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": "getCompressedAccountsByOwner",
"params": {
"owner": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"dataSlice": {
"length": 1,
"offset": 1
},
"filters": [
{
"memcmp": {
"bytes": "3J98t1WpEZ73CNm",
"offset": 1
}
}
],
"limit": 1
}
}
'{
"context": {
"slot": 100
},
"value": {
"items": [
{
"hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"lamports": 100,
"leafIndex": 100,
"owner": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"seq": 100,
"slotCreated": 100,
"tree": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"address": "11111114d3RrygbPdAtMuFnDmzsN8T5fYKVQ7FVr7",
"data": {
"data": "SGVsbG8sIFdvcmxkIQ==",
"dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
"discriminator": 100
}
}
],
"cursor": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
}
}