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.

circle-info

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.tsarrow-up-right 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
circle-check

Last updated

Was this helpful?