v1

latestOpenAPI 3.0.12026-07-2342024.5 KB
Maker

Get Unsigned Create Order Message

Get EIP712 create order message to be signed. The response of this API will need to be signed with Sign Typed Data v4 before submitting create order request to KyberSwap via /write/api/v1/orders.

post/write/api/v1/orders/sign-message

Request body

chainIdstring required

The chainId on which the order is being created. Only supports EVM chains.

makerAssetstring required

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

takerAssetstring required

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

makerstring required

The address of the Maker.

receiverstring

Defines who will receive the takerAsset when the order is filled. Default: maker.

allowedSendersstring[]

Defines the addresses who are allowed to fill the order.

makingAmountstring required

The amount of makerAsset in wei. String representation of uint256 value.

takingAmountstring required

The amount of takerAsset in wei. String representation of uint256 value.

expiredAtinteger required

The unix timestamp upon which the order will automatically lapse (i.e. expire).

Response

OK

codeinteger required

The response code.

messagestring required

Server response message.