简体   繁体   中英

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. 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.

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! 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).

https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js

此操作的示例 销售: https ://github.com/ProjectOpenSea/opensea-js#making-listings-- sell-items 购买: https ://github.com/ProjectOpenSea/opensea-js#making-offers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM