GET
/
getStatus
Get Status
curl --request GET \
  --url https://api-v2.swaps.xyz/api/getStatus \
  --header 'x-api-key: <api-key>'
{
  "statusMessage": "success",
  "sender": "0x1234567890123456789012345678901234567890",
  "srcChainId": 1,
  "dstChainId": 42161,
  "srcTxHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
  "dstTxHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
  "bridgeDetails": {
    "isBridge": true,
    "bridgeTime": 420,
    "txPath": [
      {
        "chainId": 1,
        "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
        "timestamp": "1640995200000000000",
        "nextBridge": "layerZero"
      }
    ]
  },
  "txId": "0x49b1d3d38176e45864fd55500c6c1879ab318609e1ed0c8eb9abd818e6c811fd",
  "org": {
    "appId": "app_123",
    "affiliateId": "affiliate_123",
    "appFees": [
      {
        "recipient": "<string>",
        "token": "<string>",
        "amount": "<string>"
      }
    ]
  },
  "usdValue": 100.5,
  "srcTx": {
    "toAddress": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "chainId": 1,
    "value": "1000000000000000000n",
    "timestamp": "1640995200000000000",
    "paymentToken": {
      "name": "Ethereum",
      "symbol": "ETH",
      "decimals": 18,
      "amount": "1000000000000000000n",
      "address": "0x1234567890123456789012345678901234567890"
    }
  },
  "dstTx": {
    "toAddress": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "chainId": 1,
    "value": "1000000000000000000n",
    "timestamp": "1640995200000000000",
    "paymentToken": {
      "name": "Ethereum",
      "symbol": "ETH",
      "decimals": 18,
      "amount": "1000000000000000000n",
      "address": "0x1234567890123456789012345678901234567890"
    }
  }
}

Authorizations

x-api-key
string
header
required

Limited demo key for API Playground: 5c951bc81da566bbd030ba8e20724063.

Query Parameters

txHash
string

Transaction hash to query (required if txId not provided)

Example:

"0xd56968cf4fede6a0773f3e6dfad7d1088aacd3994bada55d44faee9596dadff2"

txId
string

Transaction ID to query (required if txHash not provided)

Example:

"0x49b1d3d38176e45864fd55500c6c1879ab318609e1ed0c8eb9abd818e6c811fd"

chainId
integer

Source chain ID for the transaction (optional but recommended)

Example:

1

Response

200 - application/json

Transaction status response

The response is of type object.