Submit a secret for order fill after SrcEscrow and DstEscrow deployed and DstChain finality lock passed

POSThttps://api.1inch.com/fusion-plus/relayer/v1.2/submit/secret
Supported on:
EthereumBaseBNB ChainPolygonLineaSonicUnichainArbitrumAvalancheZKsyncGnosisOptimism

Parameters

This request doesn’t have any parameters.

Request Body

SecretInput object
secret
* string
orderHash
* 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
const axios = require('axios');

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

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {
    secret:
      '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
    orderHash:
      '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890',
  };

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

Returns

201

201 response doesn’t have payload.

Did you find what you need?