Submit a cross-chain order with fee support that resolvers will be able to fill

Submit a cross-chain order (EVM or Solana) with fee support that resolvers will be able to fill. The order must be properly signed and include all required fields.

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

Parameters

This request doesn’t have any parameters.

Request Body

any
oneOf[0]
EvmSignedOrderInput object
order
* any
allOf[0]
EvmOrderInput object
salt
* string
makerAsset
* string
takerAsset
* string
maker
* string
receiver
* string
makingAmount
* string
takingAmount
* string
makerTraits
* string
srcChainId
* number
signature
* string
extension
* string
quoteId
* string
secretHashes
array
items
string
oneOf[1]
SolanaSubmittedOrderInput object
order
* any
allOf[0]
CreateSolanaOrderParams object
hashLock
* string
amount
* string
srcSafetyDeposit
* string
dstSafetyDeposit
* string
timeLocks
* string
expirationTime
* number
assetIsNative
* boolean
dstAmount
* string
dutchAuctionDataHash
* string
maxCancellationPremium
* string
cancellationAuctionDuration
* number
allowMultipleFills
* boolean
salt
* string
maker
* string
receiver
* string
srcMint
* string
dstMint
* string
srcChainId
* number
dstChainId
* number
auctionData
* any
allOf[0]
AuctionData object
startTime
* number
duration
* number
initialRateBump
* number
pointsAndTimeDeltas
* array
items
PointAndTimeDelta object
rateBump
* number
timeDelta
* number
secretHashes
array
items
string
quoteId
* 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
32
33
34
35
36
37
38
39
40
const axios = require('axios');

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

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {},
    paramsSerializer: {
      indexes: null,
    },
  };
  const body = {
    order: {
      salt: '42',
      makerAsset: '0x0000000000000000000000000000000000000001',
      takerAsset: '0x0000000000000000000000000000000000000001',
      maker: '0x0000000000000000000000000000000000000001',
      receiver: '0x0000000000000000000000000000000000000001',
      makingAmount: '100000000000000000000',
      takingAmount: '100000000000000000000',
      makerTraits: '0',
    },
    srcChainId: 1,
    signature: 'string',
    extension: '0x',
    quoteId: 'string',
    secretHashes: ['string'],
  };

  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?