Skip to content
Docs
Limit Orders

Limit Orders

🚧

This page is a work in progress. If you have any questions, please ask in the Discord.

Create Limit Order

ParametersTypeRequiredDescription
offererstringYes
chainIdnumberNo
zonestringNo
startTimenumberNoStarts 5 minutes in the past by default
endTimenumberNoEnds 5 minutes in the future by default
inputTokenstringYes
inputAmountbigintYes
inputChainIdnumberNoDefault chainId of 1 (Ethereum Mainnet)
inputZonestringNo
outputTokenstringYes
outputAmountbigintYes
outputChainIdnumberNo
outputZonenumberNo
counternumberNo
toWithdrawbooleanNo
  import { formatIntoLimitOrder } from '@aori-io/sdk';
 
  const formatLimitOrder = await formatIntoLimitOrder({
    offerer: "0x..",
    startTime: number,
    endTime: number,
    inputToken: "0x..",
    inputAmount: 1000.., 
    chainId: 1, 
    zone: "0x..", 
    inputChainId: 1, 
    inputZone: "0x..", 
    outputToken: "0x..", 
    outputAmount: 100000, 
    outputChainId: 1, 
    outputZone: "0x..", 
    counter: 0, 
    toWithdraw: boolean
  });

Response