Publish Order

This endpoint interacts with the Kyberswap protocol to manage limit orders on the decentralized exchange. It allows you to either create a new limit order or cancel an existing one, based on the parameters provided in your request. A successful call returns detailed information including the order ID, the current order status, and a reference ID for tracking the transaction.

💡

Compute Unit Value: 35 (Fixed)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The request body for a /defi/v1/dex/publishorder

The request body for a /defi/v1/dex/publishorder

string
enum

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Allowed:
string
enum

The type of order to publish. Can be 'create' or 'cancel'. Defaults to 'create'.

Allowed:
string

The token address of the asset that the Maker is selling.

string

The token address of the asset that the Maker expects in return.

string
required

The address of the sender (Maker) initiating the transaction.

string

The address of the recipient (Taker) for the transaction.

string

Amount of the input token to provide, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: to swap 1 WETH (18 decimals), use "1000000000000000000"; to swap 1 USDC (6 decimals), use "1000000".

string

Amount of the output token to receive, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: 1 WETH (18 decimals) = "1000000000000000000"; 1 USDC (6 decimals) = "1000000".

string

The deadline for the transaction to be executed (in UNIX Timestamp format).

boolean

The unique identifier of the order to retrieve. Use this to fetch details for a specific order.

string

A randomized value to prevent replay attacks, used as an additional input in hashing.

boolean

Flag to include a basis points fee transaction alongside the main transaction when set to true.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json