Skip to main content

Get Wallet Transactions

Retrieve transaction history for a specific wallet.
curl "https://api.karen.dev/api/v1/wallets/WALLET_ID/transactions?limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
limit
number
default:"50"
Maximum number of transactions to return
transactions
array
Array of transaction records

Get All Transactions

Retrieve transaction history across all wallets.
curl "https://api.karen.dev/api/v1/transactions?limit=100" \
  -H "Authorization: Bearer YOUR_API_KEY"
limit
number
default:"50"
Maximum number of transactions to return
transactions
array
Array of transaction records from all wallets

Transaction Types

The following transaction types are tracked:
  • transfer - SOL transfers
  • swap - Token swaps via Jupiter
  • airdrop - Devnet/testnet airdrops
  • token_transfer - SPL token transfers
  • token_launch - New token creation
  • mint_supply - Minting additional token supply
  • revoke_authority - Revoking mint/freeze authority
  • stake - SOL staking
  • unstake - Stake deactivation
  • withdraw_stake - Stake withdrawal
  • burn - Token burning
  • close_account - Closing token accounts
  • wrap_sol - Wrapping SOL to wSOL
  • unwrap_sol - Unwrapping wSOL to SOL
  • freeze - Freezing token accounts
  • thaw - Unfreezing token accounts
  • other - Other transaction types

Transaction Status

  • pending - Transaction submitted, awaiting confirmation
  • confirmed - Transaction confirmed on-chain
  • failed - Transaction failed to execute
  • blocked - Transaction blocked by guardrails

Example Response

{
  "transactions": [
    {
      "id": "tx_abc123",
      "walletId": "wallet_xyz",
      "agentId": "agent_trader",
      "type": "swap",
      "status": "confirmed",
      "signature": "5Kj...",
      "details": {
        "inputToken": "So11111111111111111111111111111111111111112",
        "outputToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "inputAmount": 1.0,
        "outputAmount": 150.25,
        "slippageBps": 50
      },
      "guardrailsApplied": [
        "amount_limit",
        "rate_limit",
        "program_whitelist"
      ],
      "timestamp": "2024-03-15T10:30:00Z"
    },
    {
      "id": "tx_def456",
      "walletId": "wallet_xyz",
      "type": "transfer",
      "status": "confirmed",
      "signature": "3Xy...",
      "details": {
        "from": "7xK...",
        "to": "9mP...",
        "amount": 0.5
      },
      "guardrailsApplied": ["amount_limit"],
      "timestamp": "2024-03-15T09:15:00Z"
    }
  ]
}

Build docs developers (and LLMs) love