简体   繁体   English

为什么我不必为在 opensea 上列出 NFT 支付 gas?

[英]Why I don't have to pay gas for listing an NFT on opensea?

How can this be done, is it a signed voucher?这怎么行,是签名凭证吗? Any sample code that I can take a look?我可以看一下任何示例代码吗?

Until anyone buys the NFT, it does not exist on the blockchain.在任何人购买 NFT 之前,它都不存在于区块链上。 It's "just" a record in OpenSea's offchain database.它“只是”OpenSea 链下数据库中的一条记录。

Only when they buy the NFT through OpenSea, the buyser sends a transaction - effectively paying gas fees to mint the NFT.只有当他们通过 OpenSea 购买 NFT 时,买家才会发送交易——有效地支付 gas 费用来铸造 NFT。


Code example of signing a message and validating with ethers.js使用 ethers.js 签署消息和验证的代码示例

const message = "hello";
const [signer] = await ethers.getSigners();
const signature = await signer.signMessage(message);

console.log(
    ethers.utils.verifyMessage(message, signature) == signer.address
);

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

相关问题 寻找 Opensea NFT 的地板 - Find Floor Of Opensea NFT 从我在 opensea 中创建的集合中删除烧毁的 NFT - Removal of burned NFT from a collection I created in opensea 通过 JS API 在 OpenSea 上列出 NFT:无法提取传输调用数据错误 400 - Listing NFT on OpenSea via JS API: Failed to extract transfer calldata Error 400 Testnet NFT 显示在 Opensea 上,但不在 Rarible 上 - Testnet NFT shows on Opensea but not on Rarible 如何在您通过智能合约以编程方式铸造的 NFT 中包含“由...创建”信息(例如,在 OpenSea 列表中) - How to include "Created by..." information (e.g. on the OpenSea listing) on an NFT that you're minting programatically through a smart contract 如果我在以太坊区块链上部署了一个 todolist 智能合约,我是否需要为添加任务或标记任务完成支付以太币/汽油价格? - If i deploy a todolist smartcontract on the ethereum blockchain , will i have to pay ether / gas price for adding a task or marking a task completed? 通过钱包地址检索铸造的 NFT - OpenSea - retrieve minted NFT's by a wallet address - OpenSea 在 opensea 中将铸币钱包地址设置为 NFT 的创建者 - Set minter wallet address as creator of NFT in opensea “铸造 NFT”和 OpenSea.io 问题的含义 - Meaning of "Minting an NFT" and OpenSea.io question 支付用户的天然气:以太坊 - Pay a user's gas: Ethereum
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM