Helius Labs maintains the canonical RPC API and Photon indexer implementation.
Connection class with compression-related endpoints.
The API exposed by the indexer closely mirrors existing RPC calls, with one-to-one mapping:
Creating an RPC Connection
Connect to a specific RPC endpoint- Mainnet
- Devnet
Best Practices
Error Codes
Mainnet ZK Compression JSON RPC Methods
GetCompressedAccount
Retrieves information about a specific compressed account by its address or hash.
GetCompressedAccountsByOwner
Returns all compressed accounts owned by a specific address.
GetCompressedBalance
Retrieves the balance of a compressed account.
GetCompressedBalanceByOwner
Gets the total balance of all compressed accounts owned by an address.
GetCompressedMintTokenHolders
Lists all holders of a specific compressed token mint.
GetCompressedTokenAccountBalance
Retrieves the token balance of a compressed token account.
GetCompressedTokenAccountsByDelegate
Returns all compressed token accounts delegated to a specific address.
GetCompressedTokenAccountsByOwner
Lists all compressed token accounts owned by a specific address.
GetCompressedTokenBalancesByOwner
Retrieves all token balances for compressed accounts owned by an address.
GetCompressionSignaturesForAccount
Returns signatures for transactions involving a compressed account.
GetCompressionSignaturesForAddress
Retrieves signatures for transactions involving a specific address.
GetCompressionSignaturesForOwner
Returns signatures for transactions where an address is the owner.
GetCompressionSignaturesForTokenOwner
Lists signatures for transactions involving tokens owned by an address.
GetIndexerHealth
Returns the health status of the compression indexer.
GetIndexerSlot
Retrieves the current slot of the compression indexer.
GetLatestCompressionSignatures
Returns the most recent transaction signatures related to compression.
GetLatestNon-VotingSignatures
Retrieves recent non-voting transaction signatures.
GetMultipleCompressedAccounts
Retrieves multiple compressed accounts in a single request.
GetMultipleNewAddressProofs
Returns proofs that the new addresses are not taken already and can be created.
GetTransactionWithCompressionInfo
Returns transaction details with additional compression-related information.
GetValidityProof
Retrieves a validity proof for compressed data.