# GetErc1155TokenMetadata

This endpoint fetches the metadata of a token by `tokenId`.

{% code overflow="wrap" %}

```cpp
void GetErc1155TokenMetadata(EVyChain Chain, FString ContractAddress, int TokenId, const FVyOnGetErc1155TokenMetadataComplete& OnComplete) const;
```

{% endcode %}

\
**Parameters**

| Chain           | [EVyChain](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/shared/enum/evychain) | The blockchain of the contract.                                                         |
| --------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| ContractAddress | FString                                                                                          | The contract address.                                                                   |
| TokenId         | int                                                                                              | The \`id\` of the token whose metadata you want to fetch.                               |
| OnComplete      | FVyOnGetErc1155TokenMetadataComplete                                                             | The callback function called when the user preferences retrieval operation is complete. |

\
**OnComplete Callback** (FVyOnGetErc1155TokenMetadataComplete)\
Contains a [FVyMetadataDto](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/token/fvymetadatadto) response type
