For the complete documentation index, see llms.txt. This page is also available as Markdown.

TS/JS + Fetch

Learn how to mint a CIP-68 NFT, which stores metadata on-chain, using TypeScript or JavaScript with the Anvil API.

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

Need to create wallets?

You can use the Anvil Wallet CLI to generate the required wallet JSON files for these examples.

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 file in the examples repository.

Now, you can run the main script:

https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/cip68.ts

Last updated

Was this helpful?