Overview
The Transaction types define the structure for tracking swap and transfer operations, including their status, chain operations, and historical data.Transaction
Represents a complete transaction record for a swap or transfer operation.Properties
Unique identifier for the quote that generated this transaction
Current status of the transaction. See TransactionStatus below.
The user address who initiated the transaction
Optional recipient account identifier (CAIP format) for transfer operations
Array of operations executed on origin chains. See ChainOperation below.
Optional array of operations executed on destination chain. See ChainOperation below.
Type of transaction:
SWAP: Token swap operationTRANSFER: Token transfer to another account
Optional information about the destination token (required for swaps). See TokenInfo below.
ISO 8601 timestamp when the transaction was created
Example
TransactionStatus
Enum type representing the possible states of a transaction.Values
Transaction has been created but execution has not completed
Transaction has been successfully executed on all required chains
Transaction execution failed
Failed transaction has been refunded to the user
ChainOperation
Information about an operation executed on a specific blockchain.Properties
Transaction hash on the blockchain
Numeric chain identifier where the transaction was executedCommon chain IDs:
1: Ethereum Mainnet10: Optimism137: Polygon8453: Base42161: Arbitrum43114: Avalanche
Full URL to view the transaction on a block explorer
Example
TokenInfo
Extended token information including fiat value calculations.Properties
The OneBalance aggregated asset identifier (e.g.,
ob:eth, ob:usdc, ob:dai)Token amount as a string (represents BigInt with token’s decimals)Example:
"1000000" for 1 USDC (6 decimals)CAIP-19 format asset identifier(s)
- Single string: Asset on one chain
- Array of strings: Aggregated asset across multiple chains
{namespace}:{chainId}/{assetNamespace}:{assetReference}Examples:"eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"(USDC on Ethereum)"eip155:137/slip44:60"(ETH on Polygon)
Fiat value of the token amount
- String: Total fiat value (e.g.,
"1000.00") - Array: Per-chain breakdown for aggregated assets
- Each object contains
assetTypeandfiatValue
- Each object contains
Minimum amount required for the operation (as string)
Minimum fiat value required for the operation
Example - Simple Token
Example - Aggregated Token
TransactionHistoryResponse
Response structure for transaction history queries with pagination support.Properties
Array of transaction records. See Transaction above.
Pagination token to fetch the next page of results. If not present, there are no more results.
Example
TransactionHistoryParams
Parameters for querying transaction history.Properties
User address to query transactions for
Maximum number of transactions to return per pageRecommended: 10-50 transactions per page
Pagination token from a previous response to fetch the next page