Recent Transactions

View recent transactions with human-readable type and description using the Helius Enhanced API. Returns parsed transaction data with type classification (TRANSFER, SWAP, NFT_SALE, etc.) and descriptions.

Try It

Code Example

// Get recent transactions for a wallet address
// Uses Enhanced API for human-readable transaction data
import { Helius } from 'helius-sdk';

const helius = new Helius('YOUR_API_KEY');

async function getRecentTransactions(address: string) {
// Enhanced API endpoint returns parsed transaction data
const response = await fetch(
`https://api.helius.xyz/v0/addresses/${address}/transactions?api-key=YOUR_API_KEY&limit=20`
);

const transactions = await response.json();

return transactions.map(tx => ({
signature: tx.signature,
type: tx.type, // e.g., 'TRANSFER', 'SWAP', 'NFT_SALE'
description: tx.description,
timestamp: tx.timestamp,
fee: tx.fee,
nativeTransfers: tx.nativeTransfers,
tokenTransfers: tx.tokenTransfers,
}));
}

// Usage
const transactions = await getRecentTransactions('86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY');
transactions.forEach(tx => {
console.log(`${tx.type}: ${tx.description}`);
});

API Tips

  • Enhanced API: Returns human-readable data with type classification, descriptions, and parsed transfer details.
  • Transaction types: TRANSFER, SWAP, NFT_SALE, NFT_MINT, STAKE_SOL, UNSTAKE_SOL, BURN, TOKEN_MINT, and more.
  • Pagination: Use before-signature to load older transactions.

Frequently Asked Questions

How do I get transaction history for a Solana wallet?
Use the Helius Enhanced API endpoint /v0/addresses/{address}/transactions. It returns parsed transaction data with human-readable types like TRANSFER, SWAP, and NFT_SALE.
What transaction types are available?
Common types include TRANSFER (SOL/token transfers), SWAP (DEX trades), NFT_SALE, NFT_MINT, NFT_LISTING, STAKE_SOL, UNSTAKE_SOL, BURN, and TOKEN_MINT. See the Transaction Type Reference for the full list.
How do I load more transactions?
Use cursor-based pagination with the before parameter. Pass the signature of the last transaction to get older results. The API returns transactions in reverse chronological order.