curl --request GET \
--url https://api.onswitch.xyz/wallet/{wallet_id}/transactions \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "Wallet transactions fetched successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": [
{
"reference": "064b519b-5087-d200-0000-00000000000e",
"amount": 10,
"asset": "base:usdc",
"type": "transfer",
"status": "successful",
"date": "2024-01-01T00:00:00.000Z",
"transaction_hash": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"explorer_url": "https://blockscan.com/tx/0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"sender": "0x04e05B9bCed583e4F25F7942684dCfe8Ab2632E1",
"receiver": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"
}
]
}List transactions for a wallet with optional pagination.
curl --request GET \
--url https://api.onswitch.xyz/wallet/{wallet_id}/transactions \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "Wallet transactions fetched successfully",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": [
{
"reference": "064b519b-5087-d200-0000-00000000000e",
"amount": 10,
"asset": "base:usdc",
"type": "transfer",
"status": "successful",
"date": "2024-01-01T00:00:00.000Z",
"transaction_hash": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"explorer_url": "https://blockscan.com/tx/0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"sender": "0x04e05B9bCed583e4F25F7942684dCfe8Ab2632E1",
"receiver": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"
}
]
}Service key for API authentication
Wallet ID (24-character hex)
^[a-f0-9]{24}$Page number (1-based)
x >= 1Number of items per page (max 100)
1 <= x <= 100Transactions retrieved successfully
Hide child attributes
Transaction reference (UUID)
Transaction amount (from input)
Asset ID from input (e.g. base:usdc)
successful, failed, processing