Skip to main content
GET
/
wallet
/
{wallet_id}
/
transaction
/
{reference}
Lookup transaction
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
        }
      ]
    }
  }
}

Authorizations

x-service-key
string
header
required

Service key for API authentication

Path Parameters

wallet_id
string
required

Wallet ID (24-character hex)

Pattern: ^[a-f0-9]{24}$
reference
string<uuid>
required

Transaction reference (UUID)

Response

Transaction lookup successful

success
boolean
required
message
string
required
timestamp
string<date-time>
required
data
object
required