getCompressedAccountProof

Returns a proof the compression program uses to verify that the account is valid

post
Body
idstring · enumRequired

An ID to identify the request.

Possible values:
jsonrpcstring · enumRequired

The version of the JSON-RPC protocol.

Possible values:
methodstring · enumRequired

The name of the method to invoke.

Possible values:
Responses
200Success
application/json
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressedAccountProof",
  "params": {
    "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
  }
}
{
  "context": {
    "slot": 100
  },
  "value": {
    "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
    "leafIndex": 1,
    "merkleTree": "11111117353mdUKehx9GW6JNHznGt5oSZs9fWkVkB",
    "proof": [
      "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
    ],
    "root": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP",
    "rootSeq": 1
  }
}

Last updated