swap

Get a swap based on swap-hash and network.

Request Parameters:

Request URL Example:

https://api.magpiefi.xyz/user-manager/swap?networkName=ethereum&hash=0x

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