简体   繁体   English

通过 API 验证 Opensea NFT 所有权

[英]Verify Opensea NFT ownership via API

If I make an NFT purchasable on my store on opensea and somebody purchases that item, is there a way for me to build a website where somebody can retrieve services based on providing proof that they own the NFT that I sold on opensea?如果我在 opensea 上的商店中购买了 NFT,并且有人购买了该商品,那么我有没有办法建立一个网站,让某人可以根据提供他们拥有我在 opensea 上出售的 NFT 的证据来检索服务?

Workflow工作流程

  • I sell NFT x我卖 NFT x
  • User y buys NFT x用户 y 购买 NFT x
  • User y goes onto my website用户 y 进入我的网站
  • User y would like to use a service granted to them because they are the owner of NFT x用户 y 想使用授予他们的服务,因为他们是 NFT x 的所有者
    • This is the crucial point, here I would like to verify that they really are the owner of the NFT这是关键点,这里我要验证他们真的是NFT的所有者

Does opensea provide any mechanism to make that verification possible via an API for example?例如,opensea 是否提供任何机制来通过 API 进行验证?

Check the opensea api docs -> asset model and than owner, this should work.检查opensea api 文档 -> 资产 model和所有者,这应该可以工作。

But for the prove you need them to sign with wallet, metamask?但是为了证明你需要他们用钱包、元掩码签名?

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

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