JSON RPC Methods

Below are all ZK Compression methods extending Solana's default JSON RPC API. Helius Labs maintains the canonical RPC API and indexer implementation here.

getCompressedAccount

Returns the compressed account with the given address or hash.

getCompressedBalance

Returns the balance for the compressed account with the given address or hash.

getCompressedBalanceByOwner

Returns the total balance of the owner's compressed accounts.

getCompressedAccountProof

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

getMultipleCompressedAccounts

Returns multiple compressed accounts with the given addresses or hashes.

getMultipleCompressedAccountProofs

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

getValidityProof

Returns a single ZK Proof used by the compression program to verify the accounts' validity.

getCompressedAccountsByOwner

Returns the owner's compressed accounts. This is a paginated endpoint.

getCompressedTokenAccountsByOwner

Returns the owner's compressed token accounts. This is a paginated endpoint.

getCompressedTokenAccountsByDelegate

Returns the compressed token accounts that are partially or fully delegated to the given delegate. This is a paginated endpoint.

getCompressedTokenAccountBalance

Returns the balance for a given token account.

getCompressedTokenBalancesByOwner

Returns the token balances for a given owner. This is a paginated endpoint.

getTransactionWithCompressionInfo

Returns the transaction data for the transaction with the given signature along with parsed compression info.

getCompressionSignaturesForAccount

Return the signatures of the transactions that closed or opened a compressed account with the given hash. This is a paginated endpoint.

getCompressionSignaturesForAddress

Return the signatures of the transactions that closed or opened a compressed account with the given address. This is a paginated endpoint.

getCompressionSignaturesForOwner

Returns the signatures of the transactions that have modified an owner's compressed accounts. This is a paginated endpoint.

getCompressionSignaturesForTokenOwner

Returns the signatures of the transactions that have modified an owner's compressed token accounts. This is a paginated endpoint.

getLatestNonVotingSignatures

Returns the signatures of the latest transactions that are not voting transactions.

getLatestCompressionSignatures

Returns the signatures of the latest transactions that used the compression program. This is a paginated endpoint.

getIndexerHealth

Returns an error if the indexer is stale by more than a configurable number of blocks. Else returns ok.

getIndexerSlot

Returns the slot of the last block indexed by the indexer.

Last updated