Get all data to perform a cancellation or withdrawal on public periods

GEThttps://api.1inch.com/fusion-plus/orders/v1.2/order/ready-to-execute-public-actions
Supported on:
EthereumBaseSolanaBNB ChainArbitrumAvalancheZKsyncGnosisOptimismPolygonLineaSonicUnichain

Parameters

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

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

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    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
ReadyToExecutePublicActionsOutput object
actions
* array
items
ReadyToExecutePublicAction object
action
* any
allOf[0]
PublicAction string (Enum)
withdraw
cancel
side
* any
allOf[0]
EscrowEventSide string (Enum)
src
dst
immutables
* any
allOf[0]
Immutables object
orderHash
* string
hashlock
* string
maker
* string
taker
* string
token
* string
amount
* string
safetyDeposit
* string
timelocks
* string
parameters
string
chainId
* number
escrow
* string
secret
string
srcAssetIsNative
boolean
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
{
  "actions": [
    {
      "action": "withdraw",
      "side": "src",
      "immutables": {
        "orderHash": "0x496755a88564d8ded6759dff0252d3e6c3ef1fe42b4fa1bbc3f03bd2674f1078",
        "hashlock": "0x03f9ebf9075dfaae76c43b7443d07399609ffe24a5d435045fe4d3bf82d9fce4",
        "maker": "0xe75eD6F453c602Bd696cE27AF11565eDc9b46B0D",
        "taker": "0x00000000009E50a7dDb7a7B0e2ee6604fd120E49",
        "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "amount": "1000000000000000000",
        "safetyDeposit": "50000000000000000000",
        "timelocks": "0x3000000020000000100000004000000030000000200000001",
        "parameters": "0x"
      },
      "chainId": 1,
      "escrow": "0xf1325353e081023520d44b7a24f72905ada3a080",
      "secret": "0x496755a88564d8ded6759dff0252d3e6c3ef1fe42b4fa1bbc3f03bd2674f1078",
      "srcAssetIsNative": false
    }
  ]
}

Did you find what you need?