[英]Call nft_transfer using contract name on NEAR blockchain?
I have a question about NFT usage in NEAR blockchain.我对 NEAR 区块链中的 NFT 使用有疑问。 For example I have NFT on some marketplace (let's name it contract A
).例如,我在某个市场上有 NFT(让我们将其命名为合同A
)。 I add another contract (let's name it contract B
) to approvals list on my Token (using NEP-178 and Approvals).我将另一个合同(让我们将其命名为合同B
)添加到我的令牌上的批准列表(使用 NEP-178 和批准)。 Now this contract B
can call nft_tansfer
on my token and transfer it to itself account B
.现在这个合约B
可以在我的代币上调用nft_tansfer
并将其转移到自己的账户B
。 Is there a way to create method so I call it on contract B
that will transfer NFT from B
to me?有没有办法创建方法,所以我在合同B
上调用它,它将 NFT 从B
转移给我? It looks like if I call nft_transfer
it will not work because I am not the owner of NFT and I do not have approval right.看起来如果我调用nft_transfer
它将不起作用,因为我不是 NFT 的所有者并且我没有批准权。
I mean that contract B
is ready to transfer NFT back to me but it has to do it when I ask contract B
for it.我的意思是合约B
已经准备好将 NFT 转回给我,但是当我向合约B
要求时它必须这样做。 Thanks in advance!提前致谢!
你做对了,没有其他办法可以解决它,除非合同A
有一些错误或“以前的所有者”的特殊实现或其他任何东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.