[英]openSea NFT SDK, how to buy and sell an NFT using the api
I recently stumbled upon the OpenSeaSDK and I want to use it to buy and sell NFTs using it.我最近偶然发现了OpenSeaSDK ,我想用它来买卖 NFT。 But I couldn't find a single request to sell or buy, everything is in the
Order
keyword and they don't show how to use it easily.但是我找不到一个单一的买卖请求,一切都在
Order
关键字中,而且他们没有展示如何轻松使用它。
Can someone point me to a tutorial or maybe a simple script that I can understand this with?有人可以指点我一个教程或者一个我可以理解的简单脚本吗?
This is definitely possible in OpenSea -- I'm doing it right now!这在 OpenSea 中绝对是可能的——我现在正在做! Here's the code example I'm working off that has how to use the
createSellOrder
API to create NFT listings with a fixed price or for auctions (the word Order
means marketplace listing in their SDK).这是我正在处理的代码示例,其中包含如何使用
createSellOrder
API 创建具有固定价格或用于拍卖的 NFT 列表( Order
一词表示其 SDK 中的市场列表)。
https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.