ZK Compression
  • Introduction
    • Overview
    • Intro to Development
  • Event
    • 🗓️Event: 1000x Hackathon
  • Release Notes
    • JS - v0.21.0
  • Learn
    • In a Nutshell
    • Core Concepts
      • Compressed Account Model
      • State Trees
      • Validity Proofs
      • Lifecycle of a Transaction
      • Limitations
  • Developers
    • TypeScript Client
    • JSON RPC Methods
      • getCompressedAccount
      • getCompressedBalance
      • getCompressedTokenAccountBalance
      • getCompressedBalanceByOwner
      • getCompressedMintTokenHolders
      • getCompressedTokenBalancesByOwnerV2
      • getCompressedAccountsByOwner
      • getMultipleCompressedAccounts
      • getCompressedTokenAccountsByOwner
      • getCompressedTokenAccountsByDelegate
      • getTransactionWithCompressionInfo
      • getCompressedAccountProof
      • getMultipleCompressedAccountProofs
      • getMultipleNewAddressProofs
      • getValidityProof
      • getCompressionSignaturesForAccount
      • getCompressionSignaturesForAddress
      • getCompressionSignaturesForOwner
      • getCompressionSignaturesForTokenOwner
      • getLatestCompressionSignatures
      • getLatestNonVotingSignatures
      • getIndexerSlot
      • getIndexerHealth
    • Addresses and URLs
    • Creating Airdrops with Compressed Tokens
    • Using Token-2022
    • Add Compressed Token Support to Your Wallet
    • Create programs with the program-template
  • Node Operators
    • Run a Node
  • resources
    • Security
    • Privacy Policy
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. JSON RPC Methods

getMultipleCompressedAccountProofs

PreviousgetCompressedAccountProofNextgetMultipleNewAddressProofs

Last updated 10 months ago

Was this helpful?

Returns multiple proofs used by the compression program to verify the accounts' validity

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:
paramsstring[]Required

A 32-byte hash represented as a base58 string.

Example: 11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP
Responses
200Success
application/json
429
Exceeded rate limit.
application/json
500
The server encountered an unexpected condition that prevented it from fulfilling the request.
application/json
post
POST / HTTP/1.1
Host: mainnet.helius-rpc.com
Content-Type: application/json
Accept: */*
Content-Length: 138

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