Phantom Wallet:Solana Transactions调试
我需要知道用于在我的应用程序中使用哪些介绍列表。
例如: 有一个未知的NFT市场,我可以通过浏览器中的“购买”按钮购买NFT。 我想以编程方式购买这些NFT,而不是通过浏览器。 为此,我需要知道所有说明和交易。
总的来说,如果市场不使用Candymachine,Magiceden等,我可以购买NFT吗?
I need to know which instuctions list is used for a transaction in order to use it in my application.
For example:
There is an unknown NFT marketplace, I can buy NFT through the "Buy" button in the browser.
I want to buy these nft programmatically, not through the browser.
To do this, I need to know all the instructions and transactions.
And in general, can I buy NFTs if the marketplace does not use CandyMachine, MagicEden, etc.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每个市场/平台都有不同的管理交易方式。
如果您对交易的组建方式感兴趣并想开始对生态系统建立了解,则有两个选择:
选择开源仓库(在Metaplex上,您有拍卖行 /店面 /固定价格清单 /糖果至少机器)。其中一些也将具有模板UIS,您可以自定义以满足您的需求。他们提供了几个交易示例,以便您可以学会从地面上构建它们。
选择一个专有框架(例如魔术伊甸园),并通过其API与它们互动。在这种情况下,您将不会自己建立交易。在魔术伊甸园的情况下,他们建立了交易指令的服务,并根据其说明为API提供服务。您将不知道(您也不一定需要知道)如何将交易组合在一起,因为他们为您处理了抽象。
Solana空间中不同NFT框架的一些示例:
Metaplex拍卖管理器(开源) +店面UI。对于了解交易的创建方式,但可能不明智地开始在此基础上构建长期解决方案。店面UI也很复杂,但是只要您只关注交易及其生成方式,这是一个有用的教学工具。
Metaplex Auction House(开源)旨在替代拍卖管理器框架。像拍卖经理一样,拍卖行是开源的,并且有多个示例在Metaplex存储库中使用。
Metaplex固定价格(开源)是另一个具有自己合同集的清单框架。再次可以在Metaplex github上使用。
Magic Eden(专有)通过API公开其交易,这使您可以串行交易。您可以在应用程序中使用其API生成的交易,但是由于我不是开源的,因此您将无法从头开始生成交易。
以上只是示例。但是,他们都共享的一件事是,他们使用Metaplex标准来表达薄荷元数据。通过TokenAccounts表示所有权的方式也是所有人的标准标准,这意味着,只要您将NFT固定在钱包中,您就可以在上述任何一个中列出它们。
除上述内容外,Metaplex Discord也是友好社区的有用信息来源,但请首先检查不断增长的知识基础。
Each marketplace/platform has a different way of managing transactions.
If you are interested in how transactions are put together and want to start building an understanding of the ecosystem, you have two options:
pick an open source repo (on Metaplex on you have auction house / storefront / fixed price listing / candy machine at least ). Some of these will have template UIs as well that you can customise to suit your needs. They come with several examples of transactions so that you can learn to build them from ground up.
Pick a proprietary framework (like Magic Eden), and interact with them via their API. You will not be building the transactions yourself in this case. In the case of Magic Eden, they build the transaction instructions serverside and serve them over their instructions API. You will not know (nor would you necessarily need to know) how the transactions are put together, as they've handled the abstractions for you.
Some examples of different NFT frameworks in the solana space:
Metaplex Auction Manager (open source) + Storefront UI. Useful for learning about how transactions are created, but probably unwise to start building a long-term solution on top this. Also Storefront UI is in places quite complex but as long as you just focus on the transactions and how they are generated, it's a useful pedagogical tool.
Metaplex Auction House (open source) is intended as a replacement for Auction Manager framework. Like the Auction Manager, Auction House is open source and there are multiple examples of how to use it in metaplex repos.
Metaplex Fixed Price (open source) is another listing framework with its own set of contracts. Again repos are available on metaplex github.
Magic Eden (proprietary) expose their transactions via an API, which gives you serialized transaction. You can use the transactions generated by their API in your application, but because ME is not open source, you will not be able to generate the transactions from scratch.
The above are just examples. However, the one thing they all share is that they use Metaplex standard for expressing their mint metadata. The way ownership is expressed via TokenAccounts is also standard across all, which means that as long as you hold NFts in your wallet, you will be able to list them in any of the above.
In addition to the above, Metaplex discord is also a useful source of information with a friendly community, but please check the growing SO knowledge base first.