0x

ERC721Order Orderbook in 0x API

  • March 10, 2022

我正在嘗試使用 0x 協議實用程序庫(端點:https ://ropsten.api.0x.org/orderbook/v1/order)將簽名的ERC721Order 發佈到部署在 Ropsten 上的0X Api 訂單**簿。

不幸的是,我收到此驗證錯誤消息:

 "reason": "Validation Failed",
 "validationErrors": [
   {
     "field": "makerToken",
     "code": 1000,
     "reason": "should have required property 'makerToken'"
   },
   {
     "field": "takerToken",
     "code": 1000,
     "reason": "should have required property 'takerToken'"
   },
   {
     "field": "makerAmount",
     "code": 1000,
     "reason": "should have required property 'makerAmount'"
   },
   {
     "field": "takerAmount",
     "code": 1000,
     "reason": "should have required property 'takerAmount'"
   },
   {
     "field": "salt",
     "code": 1000,
     "reason": "should have required property 'salt'"
   }
 ]
}

必填欄位似乎與LimitOrder模型有關。0x API 訂單簿是否支持 NFT 訂單?關於我做錯了什麼有什麼建議嗎?

非常感謝

0x API 訂單簿目前不支持 NFT 訂單。

如果您希望 0x V4 NFT 訂單的訂單持久性,您可以使用專門用於 NFT 訂單的 Trader 訂單簿。

此處的文件:https ://docs.swapsdk.xyz/0x-v4/hosted-orderbook

引用自:https://ethereum.stackexchange.com/questions/123554