Retrieve the transaction data for the transaction with the given signature along with parsed compression info. RPC method guide with use cases, tips and examples.
getTransactionWithCompressionInfo RPC method returns transaction data along with compression information showing which compressed accounts were opened (created) and closed (consumed) during the transaction. This method helps with transaction analysis, account lifecycle tracking, and debugging of compression operations.
signature (string, required): Base58-encoded transaction signature to query compression information for.compressionInfo (object): Contains details about compressed account changes
closedAccounts (array): Compressed accounts consumed (spent) in this transaction
account (object): Complete compressed account data with merkle contextmaybeTokenData (object | null): Token data if this is a compressed token accountopenedAccounts (array): New compressed accounts created in this transaction
account (object): Complete compressed account data with merkle contextmaybeTokenData (object | null): Token data if this is a compressed token accountpreTokenBalances (array, optional): Token balances before transaction
owner (PublicKey): Public key of token account ownermint (PublicKey): Public key of token mintamount (BN): Token amount as BN objectpostTokenBalances (array, optional): Token balances after transaction
owner (PublicKey): Public key of token account ownermint (PublicKey): Public key of token mintamount (BN): Token amount as BN objecttransaction (object): Standard Solana transaction dataTransaction not found
No compression info
Empty account arrays
Dependencies & Setup
An ID to identify the request.
test-account The version of the JSON-RPC protocol.
2.0 The name of the method to invoke.
getTransactionWithCompressionInfo