简体   繁体   English

openSea NFT SDK,如何使用 api 买卖 NFT

[英]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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTTP API 根据合约和NFT ID得到一个nft的图像? - HTTP API to get the image of an nft based on contract and NFT ID? 如何检查 NFT 是否在特定钱包中 - How to check if NFT is in a specific wallet 是否可以通过我创建的 ERC20 代币出售 NFT-Token? - Is it possible that sell NFT-Token by ERC20 token which is created by me? 如何使用 OpenSea JavaScript SDK 解决 404 问题? - How can I solve 404 issue using the OpenSea JavaScript SDK? 我如何为 NFT 游戏开发一个 solidity 的 auto-staker? - How do I develop an auto-staker for an NFT game with solidity? 每个 NFT 是否应该有单独的智能合约 - Should each NFT have a separate smart contract 如何在 OpenSea 集合的名称下方包含“由 X 创建”信息 - How to include "Created by X" information below the name of an OpenSea collection 使用 ccxt 加密货币 API 的 ETH/BTC 套利交易在创建买单时抛出错误 - Arbitrage Trading of ETH/BTC using ccxt crypto API throws error while creating buy order 有没有办法让 Binance API 市场买单以一种自行决定最大可购买数量并且我不必计算的方式? - Is there a way to put Binance API market buy orders in a way that decides the max buyable quantity itself and that I don't have to calculate it? 如何使用binance api获取帐户信息? - How to get account information using binance api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM