Get orders by hashes (v1.2 with fee support)

Returns orders with fills including takerFeeAmount field for fee-enabled orders.

POSThttps://api.1inch.com/fusion-plus/orders/v1.2/order/status
Supported on:
EthereumBaseSolanaBNB ChainZKsyncGnosisOptimismPolygonLineaSonicUnichainArbitrumAvalanche

Parameters

This request doesn’t have any parameters.

Request Body

OrdersByHashesInput object
orderHashes
* array
items
string
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const axios = require('axios');

async function httpCall() {
  const url = 'https://api.1inch.com/fusion-plus/orders/v1.2/order/status';

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {
    orderHashes: [
      '0x10ea5bd12b2d04566e175de24c2df41a058bf16df4af3eb2fb9bff38a9da98e9',
      '0x20ea5bd12b2d04566e175de24c2df41a058bf16df4af3eb2fb9bff38a9da98e8',
      '0x30ea5bd12b2d04566e175de24c2df41a058bf16df4af3eb2fb9bff38a9da98e7',
      '0x40ea5bd12b2d04566e175de24c2df41a058bf16df4af3eb2fb9bff38a9da98e6',
    ],
  };

  try {
    const response = await axios.post(url, body, config);
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Returns

default
GetOrderFillsByHashV1_2Output object
orderHash
* string
receiver
* string
createTxSignature
string
status
* string (Enum)
pending
executed
expired
cancelled
refunding
refunded
unpublished
validation
* string (Enum)
valid
order-predicate-returned-false
not-enough-balance
not-enough-allowance
invalid-permit-signature
invalid-permit-spender
invalid-permit-signer
invalid-signature
failed-to-parse-permit-details
unknown-permit-version
wrong-epoch-manager-and-bit-invalidator
failed-to-decode-remaining
unknown-failure
order
* any
oneOf[0]
LimitOrderV4StructOutput object
salt
* string
maker
* string
receiver
* string
makerAsset
* string
takerAsset
* string
makingAmount
* string
takingAmount
* string
makerTraits
* string
oneOf[1]
SolanaOrderOutput object
orderInfo
*OrderInfoDto object
srcToken
* string
dstToken
* string
maker
* string
srcAmount
* string
minDstAmount
* string
receiver
* string
escrowParams
*EscrowParamsDto object
hashLock
* string
srcChainId
* number
dstChainId
* number
srcSafetyDeposit
* string
dstSafetyDeposit
* string
timeLocks
* string
details
*Details object
auction
* any
allOf[0]
AuctionData object
startTime
* string
duration
* string
initialRateBump
* number
points
* array
items
AuctionPoint object
delay
* number
coefficient
* number
extra
*ExtraData object
srcAssetIsNative
* boolean
orderExpirationDelay
* string
resolverCancellationConfig
*ResolverCancellationConfig object
maxCancellationPremium
* string
cancellationAuctionDuration
* number
allowMultipleFills
* boolean
salt
* string
extension
string
points
* array
items
AuctionPointOutput object
delay
* number
coefficient
* number
approximateTakingAmount
* string
positiveSurplus
* string
fills
* array
items
FillOutputDto object
status
* string (Enum)
pending
executed
refunding
refunded
txHash
* string
filledMakerAmount
* string
filledAuctionTakerAmount
* string
takerFeeAmount
* string
escrowEvents
* array
items
EscrowEventDataOutput object
transactionHash
* string
escrow
* string
side
* string (Enum)
src
dst
action
* string (Enum)
src_escrow_created
dst_escrow_created
withdrawn
funds_rescued
escrow_cancelled
blockTimestamp
* number
auctionStartDate
* number
auctionDuration
* number
initialRateBump
* number
createdAt
* number
srcTokenPriceUsd
* string
dstTokenPriceUsd
* string
cancelTx
* string
srcChainId
* number
dstChainId
* number
cancelable
* boolean
takerAsset
* string
timeLocks
* string
maker
* string
version
* string (Enum)
1.1
1.2
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  "orderHash": "0x496755a88564d8ded6759dff0252d3e6c3ef1fe42b4fa1bbc3f03bd2674f1078",
  "receiver": "0x995BE1CA945174D5bA75410C1E658a41eB13a2FA",
  "createTxSignature": "2ZhvLmmktqgQvn2e4AK8ryjGK8zJVTKiigjcNptYzP7J7A81uupjSLJFV1uMwinUfFZxpLB8UKPqQyY6P6dJR6He",
  "status": "pending",
  "validation": "valid",
  "order": null,
  "extension": "string",
  "points": [
    {
      "delay": 234,
      "coefficient": 200
    }
  ],
  "approximateTakingAmount": "100000000000000000",
  "positiveSurplus": "1000",
  "fills": [
    {
      "status": "pending",
      "txHash": "0x806039f5149065924ad52de616b50abff488c986716d052e9c160887bc09e559",
      "filledMakerAmount": "100000000000000000",
      "filledAuctionTakerAmount": "100000000000000000",
      "takerFeeAmount": "string",
      "escrowEvents": [
        {
          "transactionHash": "0x806039f5149065924ad52de616b50abff488c986716d052e9c160887bc09e559",
          "escrow": "string",
          "side": "src",
          "action": "src_escrow_created",
          "blockTimestamp": 123123123123
        }
      ]
    }
  ],
  "auctionStartDate": 123123123123,
  "auctionDuration": 123123123123,
  "initialRateBump": 1000,
  "createdAt": 123123123123,
  "srcTokenPriceUsd": "string",
  "dstTokenPriceUsd": "string",
  "cancelTx": "string",
  "srcChainId": 1,
  "dstChainId": 501,
  "cancelable": true,
  "takerAsset": "0x995BE1CA945174D5bA75410C1E658a41eB13a2FD",
  "timeLocks": "0xfc000000840000000c000001bc00000144000000a800000024",
  "maker": "0x995BE1CA945174D5bA75410C1E658a41eB13a2FA",
  "version": "1.2"
}

Did you find what you need?