LaserStream and Sender are now live! Experience ultra-fast data streaming and optimized transaction sending. Learn about LaserStream | Learn about Sender
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
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>" ] } }
Your Helius API key. You can get one for free in the dashboard.
Successfully retrieved validity proof for Solana compressed accounts
The response is of type object.
object
Was this page helpful?