Validate NFT Order

validate a NFT order

EndPoint

POST api/v3/nft/validateOrder

Request

Response

Model

NftTokenAmountInfo

Wrapper object used to describe a token associated with a certain quantity.

Compute eddsa hash

const inputs = [
    new BN(ethUtil.toBuffer(request.exchange)).toString(),
    request.storageId,
    request.accountId,
    request.sellToken.tokenId,
    request.buyToken.tokenId,
    request.sellToken.volume,
    request.buyToken.volume,
    request.validUntil,
    request.maxFeeBips,
    request.fillAmountBOrS ? 1 : 0,
    new BN(ethUtil.toBuffer(request.taker)).toString(),
  ];
  const hasher = Poseidon.createHash(12, 6, 53);
  const hash = hasher(inputs).toString(10)

Last updated