> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dev.ada-anvil.io/quick-start-examples/cip-68/treasury-updates-metadata.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
