How can i get NFT METADATA on Unity?
Hello everyone, i am developing a game with unity. I connected the wallet with moralis. It is working perfect. But i didn’t get nfts metadata from my wallet. There are 3 nft in my wallet at Ropsten test network. For example, nft meta data:
{
"dna": "2cb16e6ce09083d1a5bd17c68c124ca5370637c6",
"name": "#1",
"description": "Your project description",
"image": "ipfs://NewUriToReplace/1.gif",
"edition": 1,
"date": 1648631395696,
"attributes": [
{
"trait_type": "Tribes",
"value": "Male"
},
{
"trait_type": "Backgrounds",
"value": "Night"
},
{
"trait_type": "Skins",
"value": "Brown"
},
{
"trait_type": "Hairs",
"value": "Hairless"
},
{
"trait_type": "Bottom Clothes",
"value": "Blue Jeans"
},
{
"trait_type": "Top Clothes",
"value": "Black Suit"
},
{
"trait_type": "Glasses",
"value": "Cyberpunk Glasses"
},
{
"trait_type": "Hats",
"value": "Hatless"
},
{
"trait_type": "Beards",
"value": "Blonde Long Beard"
},
{
"trait_type": "Mouths",
"value": "Pipe"
},
{
"trait_type": "Weapons",
"value": "Sword"
}
],
"compiler": "Generative GIF Engine"
}
I want to get metadatas for characters. I tried this method but it did not work:
NftContractMetadata resp = await MoralisInterface.GetClient().Web3Api.Token.GetNFTMetadata(address, ChainList.ropsten);
Debug.Log($"GetNFTMetadata Name: {resp.Name}, TokenAddress: {resp.TokenAddress}");