New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
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.
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--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": {
"a": "<string>",
"b": "<string>",
"c": "<string>"
},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}Documentation Index
Fetch the complete documentation index at: https://helius-feat-signup-payment-link-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The version of the JSON-RPC protocol.
2.0 An ID to identify the request.
The name of the method to invoke.
getValidityProof Show child attributes
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": "getValidityProof",
"params": {
"hashes": [
"11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
],
"newAddressesWithTrees": [
{
"address": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z",
"tree": "11111118eRTi4fUVRoeYEeeTyL4DPAwxatvWT5q1Z"
}
]
}
}
'{
"context": {
"slot": 100
},
"value": {
"compressedProof": {
"a": "<string>",
"b": "<string>",
"c": "<string>"
},
"leafIndices": [
1
],
"leaves": [
"<string>"
],
"merkleTrees": [
"<string>"
],
"rootIndices": [
1
],
"roots": [
"<string>"
]
}
}