Skip to main content

Wallet API

Query wallet balances and transaction history on the Tempo network. Also supports Coinbase Developer Platform (CDP) wallet creation and management.

Get wallet balance

Returns the balance and fee token information for a wallet address on the Tempo network. Connects to mainnet by default, or testnet when the TEMPO_TESTNET environment variable is set to true.

Query parameters

Response

Errors

Get transaction history

Returns recent transaction history for a wallet address on Tempo. Currently returns a placeholder response with an explorer link while indexer integration is in progress.

Query parameters

Response

When TEMPO_TESTNET is true, the explorer URL points to explore.testnet.tempo.xyz instead of explore.tempo.xyz.

Errors

Get CDP wallet address

Returns the address of the CDP Agentic Wallet.

Response (authenticated)

Response (not authenticated)

When the CDP wallet address cannot be retrieved, the response includes authenticated: false and needsAuth: true. The remaining fields vary by failure reason:
If the failure is caused by a configuration error, the response includes error and setup fields instead of message:

Create CDP wallet

Creates a new wallet using the Coinbase Developer Platform SDK.

Request body

Response

Errors

CDP wallet status

Returns supported chain information for the CDP wallet.

Create CDP wallet client

Creates a viem wallet client on Base Sepolia.

Request body

Response

USDC transfer validation

When transferring USDC through the wallet service, the following validation rules apply:
  • The transfer amount must be a positive finite number. Values such as NaN, Infinity, negative numbers, and zero are rejected.
  • Amounts are rounded to 6 decimal places (USDC precision). If the rounded value equals zero, the transfer is rejected.
These checks run before any on-chain transaction is initiated.
When payments are initiated through the x402 pay action, additional protections apply: a per-payment maximum of $100, recipient address format validation (EVM or Solana), and audit logging of every payment attempt. See the x402 gateway reference for details.