API Reference
Solana RPC APIs
- HTTP Methods
- WebSocket Methods
Solana APIs
- Digital Asset Standard (DAS)
- Priority Fee
- Enhanced Transactions
- ZK Compression
- Overview
- POSTgetCompressedAccount
- POSTgetCompressedAccountProof
- POSTgetCompressedAccountsByOwner
- POSTgetCompressedBalance
- POSTgetCompressedBalanceByOwner
- POSTgetCompressedMintTokenHolders
- POSTgetCompressedTokenAccountBalance
- POSTgetCompressedTokenAccountsByDelegate
- POSTgetCompressedTokenAccountsByOwner
- POSTgetCompressedTokenBalancesByOwner
- POSTgetCompressedTokenBalancesByOwnerV2
- POSTgetCompressionSignaturesForAccount
- POSTgetCompressionSignaturesForAddress
- POSTgetCompressionSignaturesForOwner
- POSTgetCompressionSignaturesForTokenOwner
- POSTgetIndexerHealth
- POSTgetIndexerSlot
- POSTgetLatestCompressionSignatures
- POSTgetLatestNonVotingSignatures
- POSTgetMultipleCompressedAccountProofs
- POSTgetMultipleCompressedAccounts
- POSTgetMultipleNewAddressProofs
- POSTgetMultipleNewAddressProofsV2
- POSTgetTransactionWithCompressionInfo
- POSTgetValidityProof
Data Streaming APIs
- LaserStream gRPC
Event Listening APIs
- Webhooks
Deprecated APIs
- Token Metadata
- Mint
ZK Compression
getValidityProof
Returns a single ZK Proof used by the compression program to verify that the given accounts are valid and that the new addresses can be created.
POST
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getValidityProof",
"params": {
"hashes": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"newAddressesWithTrees": [
{
"address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
"tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
}
]
}
}'
{
"context": {
"slot": 100
},
"value": {
"compressedProof": {},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}
Authorizations
Body
application/json
Response
200
application/json
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://mainnet.helius-rpc.com/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": "1",
"method": "getValidityProof",
"params": {
"hashes": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"newAddressesWithTrees": [
{
"address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
"tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
}
]
}
}'
{
"context": {
"slot": 100
},
"value": {
"compressedProof": {},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}