一個 ERC721 的標準中,我們可以發現它定義了每個 NFT 對應到獨一無二的 tokenId
,但卻沒有把每個 NFT 的實際資料儲存在合約中,這樣我們怎麼知道花了大錢買的 NFT 就是一張 JPG 圖片呢?
interface ERC721Metadata /* is ERC721 */ {
/// 回傳本 NFT 系列的名稱
function name() external view returns (string _name);
/// 回傳本 NFT 系列的簡稱
function symbol() external view returns (string _symbol);
/// 回傳 URI (Uniform Resource Identifier)
/// URI 可能指向一個代表了 ERC721 元資料 JSON 綱要的檔案
function tokenURI(uint256 _tokenId) external view returns (string);
}
就是一個簡單的 JSON 格式,紀錄了 NFT 的名稱、簡介、與圖片。
{
"title": "Asset Metadata",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifies the asset to which this NFT represents"
},
"description": {
"type": "string",
"description": "Describes the asset to which this NFT represents"
},
"image": {
"type": "string",
"description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive."
}
}
}
OpenSea 頁面: https://opensea.io/collection/proof-of-stake-pages
在 etherscan 上的頁面: https://etherscan.io/address/0x5bf5bcc5362f88721167c1068b58c60cad075aac
這是一本由 Vitalik 寫的書,價格是自由樂捐的,他會以 NFT 的形式紀錄了捐款的證書。
比如,這就是我捐款的證明:
而我的 tokenId
為 59383
,我們可以去 etherscan 上面用 ERC721 的介面來查詢 URI 的資訊:
此時可以看到他是以 JSON base64 編碼的方式儲存在上面:
eyJzaWduZWRfdG8iOiJoeWRhaS5ldGgiLCAiZXh0ZXJuYWxfdXJsIjoiaHR0cHM6Ly9wcm9vZm9mc3Rha2UuZ2l0Y29pbi5jby8iLCAidGltZXN0YW1wIjoiMTY2MjgzMDY5MCIsICJwbGVkZ2UiOiI1MDAwMDAwMDAwMDAwMDAwMCIsICJtZXNzYWdlIjoiVGhhbmsgeW91IGZvciBzdXBwb3J0aW5nIHB1YmxpYyBnb29kcywgYW5kIGVuam95IHRoZSBib29rISIsICJ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016Y3pLU0krY21WamFYQnBaVzUwUEM5MFpYaDBQand2YzNablBnPT0ifQ==
在使用 base64 格式解碼後可以得到以下資料:
{
"signed_to":"hydai.eth",
"external_url":"https://proofofstake.gitcoin.co/",
"timestamp":"1662830690",
"pledge":"50000000000000000",
"message":"Thank you for supporting public goods, and enjoy the book!",
"image":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDYuMiIgaGVpZ2h0PSI4MTkuNCIgdmlld0JveD0iMCAwIDYwNi4yIDgxOS40Ij48ZGVmcz48c3R5bGU+LmF7ZmlsbDojZmZmO30uYntmaWxsOm5vbmU7c3Ryb2tlOiNkOWM4ZGI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjJweDt9LmMsLmQsLmUsLmYsLmcsLmgsLmksLmosLmssLmwsLm0sLm4sLm97aXNvbGF0aW9uOmlzb2xhdGU7fS5jLC5kLC5lLC5mLC5nLC5pLC5qLC5re2ZvbnQtc2l6ZTo1NXB4O30uYywuZXtmaWxsOiNlOTZiNWQ7fS5jLC5kLC5lLC5mLC5nLC5re2ZvbnQtZmFtaWx5Okx1c3REaXNwbGF5LURpZG9uZSwgTHVzdCBEaWRvbmU7fS5kLC5me2ZpbGw6IzliNGE4ZDt9LmV7bGV0dGVyLXNwYWNpbmc6MC4wMmVtO30uZntsZXR0ZXItc3BhY2luZzowLjAyZW07fS5ne2ZpbGw6IzliNGE4Yzt9Lmh7Zm9udC1zaXplOjQ1cHg7ZmlsbDojMGNiNmVhO2ZvbnQtZmFtaWx5Okx1c3QtSXRhbGljLCBMdXN0O2ZvbnQtc3R5bGU6aXRhbGljO30uaSwua3tmaWxsOiM1MGFlNTg7fS5pLC5qe2ZvbnQtZmFtaWx5Okx1c3QtUmVndWxhciwgTHVzdDtsZXR0ZXItc3BhY2luZzowLjA1ZW07fS5qe2ZpbGw6I2VmODkxNjt9LmwsLm17Z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LDAtMTQuNjgsNy4zMi0xOCwxMC45NWwtNi40OCw3YTE4LDE4LDAsMCwxLDguMjQtMmM1LjU2LDAsOC4xOSwzLjMsMTEuNDQsMTAuODRaIiBzdHlsZT0iZmlsbDojZWY4OTE2Ii8+PC9nPjxnIHN0eWxlPSJpc29sYXRpb246aXNvbGF0ZSI+PHBhdGggZD0iTTU1Mi4yLDczLjY5aC0uMjhsLS4xMS0xYy0uOC03LjU2LTYuODItMTItMTQuMy0xMkg1MzJWNzkuMTNoLjYxYzYuMTgsMCwxMC4yLTIuNTgsMTAuNS03LjcybC4wNi0xaC4yN2wtLjkzLDE3Ljc3aC0uMjhsLjA2LTFjLjI3LTUuMTItMy41LTcuODEtOS42OC03LjgxSDUzMlY5MmMwLDUuMzMuNjEsNi43LDQuNCw2LjcsOS44NywwLDE2LTYuMTUsMTcuMzUtMTVsLjItMS4yNGguMjdsLTIuNjQsMTYuNWgtMzUuOHYtLjI4aDQuODlWNjAuNzFoLTQuODl2LS4yN2gzNVoiIHN0eWxlPSJmaWxsOiM1MGFlNTgiLz48L2c+PHRleHQgY2xhc3M9ImwiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzNS4xNSAyNjUpIj52aXRhbGlrLmV0aDwvdGV4dD4gPHRleHQgY2xhc3M9Im0iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2My40OCAyOTUpIj5zaWduZXI8L3RleHQ+IDx0ZXh0IGNsYXNzPSJtIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNDUuNjQgMzczKSI+cmVjaXBpZW50PC90ZXh0Pjwvc3ZnPg=="
}
通過 URI JSON Schema 我們可以把 NFT 的詳細資訊給記錄在合約中。然而,Proof-of-Stake: Pages 的圖片非常簡單,因此可以使用 SVG 圖片格式直接編碼在 URI 內。
但,如果 NFT 代表的是一部 4K 影片、一張 8K 圖片等大型檔案,由於儲存成本會變得過高,因此會改用連結到該檔案的方式取代。