> For the complete documentation index, see [llms.txt](https://dev.ada-anvil.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ada-anvil.io/quick-start-examples/cip-68/treasury-updates-metadata.md).

# Treasury Updates Metadata (TS/JS + Fetch)

This example requires several utility and configuration files. Create the following files in the same directory as your main script.

{% hint style="info" %}
**Need to create wallets?**

You can use the [Anvil Wallet CLI](/developer-tools/wallet-cli.md) to generate the required wallet JSON files for these examples.
{% endhint %}

{% @github-files/github-code-block title="utils/constant.ts" url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/utils/constant.ts>" %}

You will also need the shared utility functions, which you can find in the [`utils/shared.ts`](https://github.com/Cardano-Forge/anvil-api-examples/blob/main/utils/shared.ts) file in the examples repository.

This example uses the [Wallet Endpoints](/developer-tools/wallet-endpoints.md) to fetch UTXOs from the treasury wallet.

Now, you can run the main script:

{% @github-files/github-code-block url="<https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/cip68-treasury-update-meta.ts>" %}

{% hint style="success" %}
**Learn More**

For a step-by-step explanation, see the [Update CIP-68 Metadata Guide](https://github.com/Cardano-Forge/anvil-api/blob/main/docs/guides/nft-and-ft/update-metadata-cip-68.md).
{% endhint %}
