Create an order
POST /nft/orders/:chainId/
Examples
The process of composing an NFT order and the payload to POST to API endpoint is pretty much the same as with usual "fungible to fungible token" orders.
The only differences are:
slightly different endpoint route (
/nft/orders/...
instead of/ft/orders/...
)makerAssetType
andtakerAssetType
fields are requiredmakerAsset
andtakerAsset
contain not plain token addresses, but token address and token type encoded as described in Body parameterstakerAssetId
andmakerAssetId
will contain NFTtokenId
. If it's "NFT to fungible" order,takerAssetId
= 0 andmakerAssetId
= tokenID. If it's "fungible to NFT", then the opposite.
Query parameters:
chainId:
network id (Ethereum Mainnet = 1)
Body parameters
nonceAndMeta
: needs to be encoded as described in:
makerAsset
andtakerAsset
needs to be encode as packed field containing address of an ERC20/721/1155 token that maker want to sell to the taker (between0-19 bits
). Token type encoded as show above on20-21 bits
.
Example encoding in JavaScript:
Response
Understand the response by checking our dedicated page:
Data structure in our centralized systemLast updated