Skip to main content
The compressed token SDK calls these methods internally via interface functions like transferInterface and getAtaInterface. You rarely need to call them directly.Call these methods directly if you are building a block explorer, custom indexer, or working with legacy compressed tokens.

Create an RPC connection

Best practices

Error codes

Methods

These methods are called internally by the compressed token SDK. Call them directly for custom indexing, block explorers, or debugging.
GetCompressedAccountReturns a compressed account by address or hash.
GetCompressedAccountsByOwnerReturns all compressed accounts for an owner.
GetCompressedBalanceByOwnerReturns the total compressed balance for an owner.
GetCompressedTokenAccountsByOwnerReturns all compressed token accounts for an owner.
GetCompressedTokenBalancesByOwnerReturns all token balances for compressed accounts owned by an address.
GetValidityProofReturns a validity proof for compressed state transitions.
GetCompressionSignaturesForAddressReturns signatures for transactions involving an address.
GetCompressionSignaturesForOwnerReturns signatures for transactions where an address is the owner.
GetTransactionWithCompressionInfoReturns transaction details with compression context.
GetIndexerHealthReturns the health status of the Photon indexer.
GetIndexerSlotReturns the current slot of the Photon indexer.

Legacy

Methods for direct compressed-token workflows. Not called by the Light Token SDK interface functions.
GetCompressedBalanceReturns the balance of a single compressed account.
GetCompressedMintTokenHoldersLists all holders of a compressed token mint.
GetCompressedTokenAccountBalanceReturns the token balance of a single compressed token account.
GetCompressedTokenAccountsByDelegateReturns all compressed token accounts delegated to an address.
GetCompressionSignaturesForAccountReturns signatures for transactions involving a compressed account.
GetCompressionSignaturesForTokenOwnerReturns signatures for token transactions by owner.
GetLatestCompressionSignaturesReturns the most recent compression-related signatures.
GetLatestNonVotingSignaturesReturns recent non-voting transaction signatures.
GetMultipleCompressedAccountsReturns multiple compressed accounts in a single request.
GetMultipleNewAddressProofsReturns proofs that new addresses can be created.