Get actual escrow factory contract address (v2 for fee-enabled orders)

GEThttps://api.1inch.com/fusion-plus/orders/v1.2/order/escrow
Supported on:
EthereumBaseSolanaBNB ChainGnosisOptimismPolygonLineaSonicUnichainArbitrumAvalancheZKsync

Parameters

chainId
number query

Request Body

This request doesn’t have any request body.

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
const axios = require('axios');

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

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {
      chainId: 1,
    },
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {};

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

Returns

default
any
oneOf[0]
EscrowFactory object
address
* string
oneOf[1]
SolanaEscrowFactory object
srcAddress
* string
dstAddress
* string
JSON
1
2
3
4
{
  "address": "string"
}

Did you find what you need?