Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 230ecb3

Browse files
Some small updates to this tutorial (#479)
1 parent ec567ba commit 230ecb3

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/tutorials/create-an-nft/nft-tznft.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create NFTs from the command line
33
authors: 'Sol Lederer, Tim McMackin'
44
last_update:
5-
date: 18 September 2023
5+
date: 28 November 2024
66
---
77

88
This tutorial covers how to create a collection of NFTs on Tezos and manipulate them using the `tznft` command-line tool.
@@ -27,15 +27,15 @@ NFTs can represent ownership over digital or physical assets like virtual collec
2727
Like other types of Tezos tokens, a collection of NFTs is managed by a smart contract.
2828
The smart contract defines what information is in each token and how the tokens behave, such as what happens when a user transfers an NFT to another user.
2929

30-
In this tutorial, you create NFTs that comply with the FA2 standard (formally known as the [TZIP-12](https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-12/tzip-12.md) standard), the current standard for tokens on Tezos.
30+
In this tutorial, you create NFTs that comply with the [FA2](/architecture/tokens/FA2) standard, a popular and flexible standard for tokens on Tezos.
3131
The FA2 standard creates a framework for how tokens behave on Tezos, including fungible, non-fungible, and other types of tokens.
3232
It provides a standard API to transfer tokens, check token balances, manage operators (addresses that are permitted to transfer tokens on behalf of the token owner), and manage token metadata.
3333

3434
## Prerequisites
3535

3636
To run this tutorial you need Node.JS, NPM, and Docker Desktop to install and use the `tznft` CLI tool, which helps you create and test NFT collections on Tezos.
3737

38-
- Install Node.JS version 18 (not 20) and NPM.
38+
- Install Node.JS version 18 (no later) and NPM.
3939
See https://nodejs.org/.
4040
You can verify that they are installed by running these commands:
4141

@@ -119,7 +119,7 @@ The first step in creating NFTs is to create local metadata files that describe
119119
```
120120

121121
The new metadata file is named `my_collection.json` and has information such as the name, description, home page, and creator of the collection.
122-
It also includes the interfaces that the NFTs support, including the TZIP-12 interface that was mentioned earlier.
122+
It also includes the interfaces that the NFTs support, including the TZIP-12 interface that is the basis for the FA2 standard.
123123

124124
1. Optional: Edit the `my_collection.json` file to put your information in the `name`, `description`, and `authors` fields.
125125

@@ -476,14 +476,18 @@ Similarly, you can use the same collection alias because `tznft` keeps aliases s
476476
tznft create-collection my-account --meta_file my_collection.json --alias my_collection
477477
```
478478
479+
If you see an error that says that the request failed with the message `getaddrinfo ENOTFOUND`, the problem could be that the Tezos testnet node is not available.
480+
If you see this error, open the `tznft.json` file, go to the `testnet` section, and change the `providerUrl` field to the URL of a testnet RPC node from the site https://teztnets.com.
481+
479482
1. Mint the tokens on the testnet.
480483
The command is the same as for the sandbox:
481484
482485
```bash
483486
tznft mint my-account my_collection --tokens '1, ipfs://abcde12345'
484487
```
485488
486-
You can add more NFTs until you freeze the collection.
489+
You must use the same account alias that you used to create the collection because that account becomes the administrator of the collection.
490+
Just like in the sandbox, you can add more NFTs until you freeze the collection.
487491
488492
1. View your token balances.
489493
The command is the same as for the sandbox:

0 commit comments

Comments
 (0)