# getErc1155TokenMetadata

### Description

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

{% code overflow="wrap" %}

```javascript
public getErc1155TokenMetadata(chain: VyChain, contractAddress: string, tokenId: number) : VyPromise<VyMetadataDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| chain           | [VyChain](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/enum/vychain) | The blockchain of the contract.                           |
| --------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| contractAddress | string                                                                                | The contract address.                                     |
| tokenId         | number                                                                                | The \`id\` of the token whose metadata you want to fetch. |

**Returns**

VyPromise<[VyMetadataDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/token/vymetadatadto)>
{% endtab %}
{% endtabs %}
