curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20&sort=date_desc"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20'
);
const data = await response.json();
{
"transactions": [
{
"action": "deposit",
"date": "2024-01-15T10:30:00Z",
"amount": 1000000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xabc...",
"protocol": "aave"
},
{
"action": "swap",
"date": "2024-01-16T08:00:00Z",
"amount": 500000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xdef...",
"protocol": "compound",
"new_token": "0x..."
}
],
"pagination": {
"total_items": 15,
"total_pages": 1,
"current_page": 1,
"items_per_page": 20
}
}
Agents
Get Transaction History
Get transaction history for a wallet
GET
/
api
/
v1
/
{chain_id}
/
wallets
/
{wallet}
/
transactions
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20&sort=date_desc"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20'
);
const data = await response.json();
{
"transactions": [
{
"action": "deposit",
"date": "2024-01-15T10:30:00Z",
"amount": 1000000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xabc...",
"protocol": "aave"
},
{
"action": "swap",
"date": "2024-01-16T08:00:00Z",
"amount": 500000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xdef...",
"protocol": "compound",
"new_token": "0x..."
}
],
"pagination": {
"total_items": 15,
"total_pages": 1,
"current_page": 1,
"items_per_page": 20
}
}
SDK Alternative: Use
agent.transactions() for a simpler TypeScript interface. See SDK docsDescription
Retrieves paginated transaction history for a wallet including deposits, withdrawals, swaps, and rebalancing operations.Path Parameters
integer
required
The blockchain chain ID
string
required
The wallet address
Query Parameters
integer
default:"1"
Page number (starts at 1)
integer
default:"20"
Number of items per page (max 100)
string
default:"date_desc"
Sort order:
date_desc or date_ascResponse
array
Array of transactions
object
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20&sort=date_desc"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../transactions?page=1&limit=20'
);
const data = await response.json();
{
"transactions": [
{
"action": "deposit",
"date": "2024-01-15T10:30:00Z",
"amount": 1000000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xabc...",
"protocol": "aave"
},
{
"action": "swap",
"date": "2024-01-16T08:00:00Z",
"amount": 500000000,
"token_type": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"status": "approved",
"transaction_hash": "0xdef...",
"protocol": "compound",
"new_token": "0x..."
}
],
"pagination": {
"total_items": 15,
"total_pages": 1,
"current_page": 1,
"items_per_page": 20
}
}