curl --request GET \
--url https://api.onswitch.xyz/wallet/{wallet_id}/transaction/{reference} \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "Transaction lookup successful",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"reference": "064b519b-5087-d200-0000-00000000000e",
"transaction_hash": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"explorer_url": "https://blockscan.com/tx/0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"type": "transfer",
"date": "2024-01-01T00:00:00.000Z",
"sender": "0x04e05B9bCed583e4F25F7942684dCfe8Ab2632E1",
"receiver": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"status": "successful",
"fee": {
"amount": 0.01,
"assets": [
{
"id": "base:usdc",
"amount": 0.01
}
]
},
"input": {
"amount": 10,
"assets": [
{
"id": "base:usdc",
"amount": 10
}
]
},
"output": {
"amount": 10,
"assets": [
{
"id": "arbitrum:usdc",
"amount": 10
}
]
}
}
}Get details of a single transaction by its reference (UUID).
curl --request GET \
--url https://api.onswitch.xyz/wallet/{wallet_id}/transaction/{reference} \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "Transaction lookup successful",
"timestamp": "2024-01-01T00:00:00.000Z",
"data": {
"reference": "064b519b-5087-d200-0000-00000000000e",
"transaction_hash": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"explorer_url": "https://blockscan.com/tx/0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"type": "transfer",
"date": "2024-01-01T00:00:00.000Z",
"sender": "0x04e05B9bCed583e4F25F7942684dCfe8Ab2632E1",
"receiver": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
"status": "successful",
"fee": {
"amount": 0.01,
"assets": [
{
"id": "base:usdc",
"amount": 0.01
}
]
},
"input": {
"amount": 10,
"assets": [
{
"id": "base:usdc",
"amount": 10
}
]
},
"output": {
"amount": 10,
"assets": [
{
"id": "arbitrum:usdc",
"amount": 10
}
]
}
}
}Service key for API authentication
Wallet ID (24-character hex)
^[a-f0-9]{24}$Transaction reference (UUID)
Transaction lookup successful
Hide child attributes
Transaction reference (UUID)
Blockchain transaction hash
URL to view transaction on blockchain explorer
Transaction type (e.g. transfer)
successful, failed, processing