CLI (TS/JS + Fetch)

Learn how to mint a standard CIP-25 NFT using the Anvil API wallet CLI with TypeScript or JavaScript.

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.

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

Now, you can run the main script:

https://github.com/Cardano-Forge/anvil-api-examples/blob/main/documentation-references/mint-cli-cip25.ts
circle-check

Last updated

Was this helpful?