cardano-community / koios-artifacts

Artifacts for https://koios.rest and https://api.koios.rest websites
Creative Commons Attribution 4.0 International
20 stars 25 forks source link

Fetch latest metadata of a token #37

Closed gobboo closed 2 years ago

gobboo commented 2 years ago

Is your feature request related to a problem? Please describe. Trying to fetch the updated metadata of https://pool.pm/902eaf4440531a68e8a00345f3c7455ad2c8c8f3bbd59355fa14b9aa.PomCyclr3757

However the metadata there is the most updated but koios only returns the mint metadata of a token

Describe the solution you'd like To be able to fetch the latest metadata of a token instead of the mint one

Describe alternatives you've considered No alternative solutions I can think of

Additional context N/A

BlockchainArtWorks commented 2 years ago

Another example of issue shown below.

Using the following Koios asset information end-point:

curl -X GET "https://api.koios.rest/api/v0/asset_info?_asset_policy=1683a511eaa5dfcfb1665cc56d9f5f9fb8fcebb7a52cd63597403a47&_asset_name=3634424c58323239303035" -H "Accept: application/json"

The following response is obatined:

[
  {
    "policy_id": "1683a511eaa5dfcfb1665cc56d9f5f9fb8fcebb7a52cd63597403a47",
    "asset_name": "3634424c58323239303035",
    "asset_name_ascii": "64BLX229005",
    "fingerprint": "asset1lc7n2recjq44zyvtsq449yr99x2pe2vlc0dy9t",
    "minting_tx_hash": "ad46e5a968f2c6406a49a40cdb5ee7ea2713e49ad8329bce68180ba74d912b14",
    "total_supply": "1",
    "mint_cnt": 2,
    "burn_cnt": 1,
    "creation_time": "2021-11-25T22:39:08",
    "minting_tx_metadata": {
      "key": "721",
      "json": {
        "1683a511eaa5dfcfb1665cc56d9f5f9fb8fcebb7a52cd63597403a47": {
          "64BLX229005": {
            "name": "64-BLOCKS #229-005",
            "files": [
              {
                "src": "ipfs://QmTqgJzWYwFnG6Y73KfpcPCkpkdAAxb8bWk4KzHADVfVfM", <---- first mint IPFS URI
                "mediaType": "text/html"
              }
            ],
            "image": "ipfs://QmPXDNvAiZ2Vp3De3pd7w5Dfnk5tHbfcnBiMnVV1AqYnaY",
            "mediaType": "image/png",
            "Description": [
              "Generated using raw Cardano blockchain data",
              "Interactive | Customisable | Animated | Decorative Digital NFT",
              "-",
              "A Cardano Blockchain Art Works Project © 2021",
              "https://buy.blockchainart.works"
            ]
          }
        }
      }
    },
    "token_registry_metadata": null
  }
]

As can be seen in the NFT's Mint transaction tab on cardanoscan.io, there was an:

(1) Original Mint, (2) Re-mint w/ new metadata, (3) NFT burn of the new mint.

The final metadata is as follows, as can be seen on pool.pm:

{
  "721": {
    "1683a511eaa5dfcfb1665cc56d9f5f9fb8fcebb7a52cd63597403a47": {
      "64BLX229005": {
        "Description": [
          "Generated using raw Cardano blockchain data",
          "Interactive | Customisable | Animated | Decorative Digital NFT",
          "-",
          "A Cardano Blockchain Art Works Project © 2021",
          "https://buy.blockchainart.works",
          "-",
          "Personalised on 1st of December 2021 (v2.0)"
        ],
        "files": [
          {
            "mediaType": "text/html",
            "src": "ipfs://QmXSazPgZDvT6E5KVHPRdYJFJtShcKqWQtTpjBhycPyhzE" <--- updated mint IPFS URI
          }
        ],
        "image": "ipfs://QmPXDNvAiZ2Vp3De3pd7w5Dfnk5tHbfcnBiMnVV1AqYnaY",
        "mediaType": "image/png",
        "name": "64-BLOCKS #229-005"
      }
    }
  }
}
Scitz0 commented 2 years ago

A related issue to this one was opened on the guild operators branch. In addition to changing from first to latest mint tx metadata, there is also a problem with current code that it only returns a single metadata label. So if the minting tx had a more complex metadata attached with multiple labels, all data is not returned.

See here for a solution to the latter problem: https://github.com/cardano-community/guild-operators/issues/1467#issuecomment-1198621672

Another option would be to return an array with all minting metadata and tx block time as ref if you want the entire history for an asset. I know some projects have used mint->burn->mint pattern to evolve an NFT through different life stages. Returning all minting metadata would allow a consumer of Koios to display this evolving process.

rdlrt commented 2 years ago

Latest update from discussion:

dostrelith678 commented 2 years ago

Does this look okay? Using asset examples from https://github.com/cardano-community/guild-operators/issues/1467#issue-1320953653

  1. Asset history: Royalty:
    [
    {
    "policy_id": "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330",
    "asset_name": "",
    "minting_txs": [
      {
        "tx_hash": "c3cdb238371519027a0606a7ee5f5feef8577bc2406c0dcc5a7928ec8c21d77a",
        "block_time": 1659088924,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "1529ced98380dd347139abbd91b832be9d3be25aa1f4a2d012a902d5608464f6",
        "block_time": 1659087888,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "4090b3c24c26b8ce19a8d38f0ccdf5b3f78fd7d78223cbb73ee823fdd2dd55a7",
        "block_time": 1659086462,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "97b1d62a83bb517467562b4ebe404c206f0355cb1f8c25a77e0178dd59e85120",
        "block_time": 1659013226,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.99",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "1510a7594c2ee4bdead66cacb7c6398d4664594af69fee340e20077a576ee364",
        "block_time": 1659012941,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.12",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      }
    ]
    }
    ]

Non-royalty:

[
  {
    "policy_id": "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330",
    "asset_name": "30333735",
    "minting_txs": [
      {
        "tx_hash": "1c451e6b863b5bc8693d7c778a0932f7ab29143b0a595087e516baadcf4dec15",
        "block_time": 1659089369,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "c3cdb238371519027a0606a7ee5f5feef8577bc2406c0dcc5a7928ec8c21d77a",
        "block_time": 1659088924,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "1529ced98380dd347139abbd91b832be9d3be25aa1f4a2d012a902d5608464f6",
        "block_time": 1659087888,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "4090b3c24c26b8ce19a8d38f0ccdf5b3f78fd7d78223cbb73ee823fdd2dd55a7",
        "block_time": 1659086462,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.75",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "97b1d62a83bb517467562b4ebe404c206f0355cb1f8c25a77e0178dd59e85120",
        "block_time": 1659013226,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.99",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      },
      {
        "tx_hash": "1510a7594c2ee4bdead66cacb7c6398d4664594af69fee340e20077a576ee364",
        "block_time": 1659012941,
        "quantity": "1",
        "metadata": [
          {
            "key": "721",
            "json": {
              "version": "1.0",
              "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
                "0375": {
                  "name": "0375",
                  "Media": "3D & VR Designs",
                  "Title": "3D CNFT PRO.Té.Gé Medal",
                  "files": [
                    {
                      "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                      "name": "0375",
                      "mediaType": "image/gif"
                    }
                  ],
                  "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "Artist": "CNFT PRO.Té.Gé",
                  "Edition": "AR/GIF",
                  "Twitter": "https://twitter.com/CNFTPRO",
                  "Quantity": "1000",
                  "Copyright": "CNFT PRO.Té.Gé ©",
                  "Publisher": "NFThubs",
                  "Royalties": "5%",
                  "mediaType": "image/gif",
                  "Collection": "CNFT Protégé Collection Series",
                  "description": "CNFT Protégé Medal",
                  "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
                  "Publishers Website": "https://NFThubs.io/"
                }
              }
            }
          },
          {
            "key": "777",
            "json": {
              "pct": "0.12",
              "addr": [
                "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
                "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
              ]
            }
          }
        ]
      }
    ]
  }
]
  1. Asset info:

Non-royalty:

curl "http://127.0.0.1:8050/rpc/asset_info1?_asset_policy=5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330&_asset_name=30333735"
[
  {
    "policy_id": "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330",
    "asset_name": "30333735",
    "asset_name_ascii": "0375",
    "fingerprint": "asset1faw0wkdnepn6usfpw3p90faaxcg0n5ql4lnsgn",
    "minting_tx_hash": "1510a7594c2ee4bdead66cacb7c6398d4664594af69fee340e20077a576ee364",
    "total_supply": "7",
    "mint_cnt": 7,
    "burn_cnt": 0,
    "creation_time": 1659012941,
    "minting_tx_metadata": [
      {
        "key": "721",
        "json": {
          "version": "1.0",
          "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
            "0375": {
              "name": "0375",
              "Media": "3D & VR Designs",
              "Title": "3D CNFT PRO.Té.Gé Medal",
              "files": [
                {
                  "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "name": "0375",
                  "mediaType": "image/gif"
                }
              ],
              "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
              "Artist": "CNFT PRO.Té.Gé",
              "Edition": "AR/GIF",
              "Twitter": "https://twitter.com/CNFTPRO",
              "Quantity": "1000",
              "Copyright": "CNFT PRO.Té.Gé ©",
              "Publisher": "NFThubs",
              "Royalties": "5%",
              "mediaType": "image/gif",
              "Collection": "CNFT Protégé Collection Series",
              "description": "CNFT Protégé Medal",
              "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
              "Publishers Website": "https://NFThubs.io/"
            }
          }
        }
      },
      {
        "key": "777",
        "json": {
          "pct": "0.75",
          "addr": [
            "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
            "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
          ]
        }
      }
    ],
    "token_registry_metadata": null
  }
]

Royalty:

curl "http://127.0.0.1:8050/rpc/asset_info1?_asset_policy=5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330"
[
  {
    "policy_id": "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330",
    "asset_name": "",
    "asset_name_ascii": "",
    "fingerprint": "asset14u67xrajdcjn2n9e3q5m9zykt5yrs78sve8qxl",
    "minting_tx_hash": "1510a7594c2ee4bdead66cacb7c6398d4664594af69fee340e20077a576ee364",
    "total_supply": "7",
    "mint_cnt": 7,
    "burn_cnt": 0,
    "creation_time": 1659012941,
    "minting_tx_metadata": [
      {
        "key": "721",
        "json": {
          "version": "1.0",
          "5873e09ab65389ce8249a4dbd401f14bb2149f29b9e5a05d5ba47330": {
            "0375": {
              "name": "0375",
              "Media": "3D & VR Designs",
              "Title": "3D CNFT PRO.Té.Gé Medal",
              "files": [
                {
                  "src": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
                  "name": "0375",
                  "mediaType": "image/gif"
                }
              ],
              "image": "ipfs://QmNsGMmhqzNV5f36g4mSuDGBpcAAiGCAqz8y7gRvQExRmh",
              "Artist": "CNFT PRO.Té.Gé",
              "Edition": "AR/GIF",
              "Twitter": "https://twitter.com/CNFTPRO",
              "Quantity": "1000",
              "Copyright": "CNFT PRO.Té.Gé ©",
              "Publisher": "NFThubs",
              "Royalties": "5%",
              "mediaType": "image/gif",
              "Collection": "CNFT Protégé Collection Series",
              "description": "CNFT Protégé Medal",
              "Unlock Feature": "Holders will have access to exclusive CNFT Air Drops",
              "Publishers Website": "https://NFThubs.io/"
            }
          }
        }
      },
      {
        "key": "777",
        "json": {
          "pct": "0.75",
          "addr": [
            "addr_test1qrqppj2vjwa7v55r9yafj3n3nwf80ve95z4s0eu8k7",
            "zh9wkp28sfx99tcvp3ats0g59vfuam4jz3hx284dr9zseag75qnzymfz"
          ]
        }
      }
    ],
    "token_registry_metadata": null
  }
]

@maxee

maxee commented 2 years ago

@dostrelith678 Looks good to me, yeah! :) The Asset information returns the metadata from the latest mint right? :)