![](/img/trans.png)
[英]How can I solve 404 issue using the OpenSea JavaScript SDK?
[英]How to Retrieve TRAITS of NFT from OpenSea with JavaScript?
我有一個網站,我想知道如何從 OpenSea 獲得 NFT 的特征。 任何人都可以幫助我,我真的需要一個建議。 謝謝您的幫助。 以下是我在 OpenSea 文檔中獲取的特征
"traits": [
{
"trait_type": "original shirt",
"value": "collared shirt white",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original background",
"value": "red",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original type",
"value": "plain mfer",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original eyes",
"value": "eye mask",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "mouth",
"value": "smile",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original headphones",
"value": "white headphones",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original smoke",
"value": "cig black",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
},
{
"trait_type": "original 4:20 watch",
"value": "oyster silver",
"display_type": null,
"max_value": null,
"trait_count": 0,
"order": null
}
],
在此處查看 API: https://docs.opensea.io/reference/retrieving-assets-rinkeby
OpenSea API 允許您通過向 /nft/{id}/traits 端點發出 GET 請求來檢索 NFT 的特征。 端點中的 {id} 是您要為其檢索特征的 NFT 的 ID。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.