Method Signature
Description
Retrieves the transaction history for an agent, including deposits, withdrawals, supplies, swaps, and claims.Parameters
Smart account wallet address.
Page number for pagination (starts at 1).
Number of items per page (max 100).
Sort order for results:
SortOrder.DATE_ASC- Oldest firstSortOrder.DATE_DESC- Newest first
Return Value
Array of transactions, each containing:
action- Transaction type (DEPOSIT, WITHDRAW, SUPPLY, WITHDRAW_SUPPLY, SWAP, CLAIM)date- Transaction dateamount- Amount involvedtoken_type- Token addressstatus- Status (PENDING, SUCCESS, FAILED, REVERTED)transaction_hash- On-chain transaction hash (optional)protocol- Protocol involved (optional)new_token- New token for swaps (optional)apr- APR at time of transaction (optional)
Pagination metadata:
total_items- Total number of transactionstotal_pages- Total number of pagescurrent_page- Current page numberitems_per_page- Items per page
Example
Output
Transaction Types
| Action | Description |
|---|---|
DEPOSIT | User deposited funds to the smart account |
WITHDRAW | User withdrew funds from the smart account |
SUPPLY | Agent supplied funds to a protocol |
WITHDRAW_SUPPLY | Agent withdrew funds from a protocol |
SWAP | Agent swapped tokens |
CLAIM | Agent claimed rewards |