# GetErc1155Tokens

This endpoint is used to get all tokens in a contract.

{% code overflow="wrap" %}

```cpp
void GetErc1155Tokens(EVyChain Chain, FString ContractAddress, const FVyQuery_GetErc1155Tokens& Query, const FVyOnGetErc1155TokensComplete& 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 whose tokens you want to fetch.                                    |
| Query           | [FVyQuery\_GetErc1155Tokens](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/token/query/fvyquery_geterc1155tokens) | Optional Query Parameters                                                               |
| OnComplete      | FVyOnGetErc1155TokensComplete                                                                                                       | The callback function called when the user preferences retrieval operation is complete. |

\
**OnComplete Callback** (FVyOnGetErc1155TokensComplete)\
Contains a TArray<[FVyErc1155TokenDto](https://sdk.venly.io/sdk-reference/ue5-sdk-v3/object-references/token/fvyerc1155tokendto)> response type
