swaps

Get swaps based on wallet address, swap hash and offset.

Request Parameters:

NameTypeDescriptionExample

networkName (required)

String

The network name for which to retrieve the swaps.

bsc

hash (required)

String

The swap hash used to filter the swaps.

walletAddress (required)

String

The wallet address associated with the swaps.

0x3G9b800bB6805239E9F9C5027F894917C7a71e41

offset (optional)

Number

The number of swaps to skip in the result set.

Default value: 0

statuses (optional)

String[]

The swap stage status for which to retrieve the swaps 0: Error 1: Pending 2: Completed 3: Refund

Available values : 0, 1, 2, 3

Request URL Example:

Response Example:

[
  {
    "id": "string",
    "fromNetwork": {
      "id": 0,
      "name": "bsc",
      "chainId": 0
    },
    "toNetwork": {
      "id": 0,
      "name": "bsc",
      "chainId": 0
    },
    "senderAddress": "string",
    "sequence": "string",
    "bridgeType": 0,
    "dataTransferType": 0,
    "bridgeData": {
      "encodedVaaBuffer": "string",
      "amount": "string",
      "updatedAt": "string"
    },
    "dataTransfer": {
      "sequence": "string",
      "encodedVaaBuffer": "string",
      "updatedAt": 0
    },
    "bridgePayload": "string",
    "dataTransferPayload": "string",
    "transactionData": {
      "fromAssetAddress": "string",
      "toAssetAddress": "string",
      "toAddress": "string",
      "recipientAggregatorAddress": "string",
      "amountOutMin": "string",
      "swapOutGasFee": "string"
    },
    "swapType": {
      "id": 0,
      "name": "on_chain"
    },
    "swapStages": [
      {
        "id": "string",
        "hash": "string",
        "blockNumber": "string",
        "status": 0,
        "amountIn": "string",
        "amountOut": "string",
        "amountInUsd": "string",
        "amountOutUsd": "string",
        "fromAssetAddress": "string",
        "toAssetAddress": "string",
        "timestamp": "string",
        "fromWallet": {
          "id": "string",
          "address": "string"
        },
        "toWallet": {
          "id": "string",
          "address": "string"
        },
        "swapStageType": {
          "id": 0,
          "name": "swap_in"
        }
      }
    ]
  }
]

Last updated