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

api-key
string
query
required

Your Helius API key. You can get one for free in the dashboard.

Body

application/json

Response

200
application/json

The response is of type object.