You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/tutorials/create-an-nft/nft-tznft.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Create NFTs from the command line
3
3
authors: 'Sol Lederer, Tim McMackin'
4
4
last_update:
5
-
date: 18 September 2023
5
+
date: 28 November 2024
6
6
---
7
7
8
8
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
27
27
Like other types of Tezos tokens, a collection of NFTs is managed by a smart contract.
28
28
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.
29
29
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.
31
31
The FA2 standard creates a framework for how tokens behave on Tezos, including fungible, non-fungible, and other types of tokens.
32
32
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.
33
33
34
34
## Prerequisites
35
35
36
36
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.
37
37
38
-
- Install Node.JS version 18 (not 20) and NPM.
38
+
- Install Node.JS version 18 (no later) and NPM.
39
39
See https://nodejs.org/.
40
40
You can verify that they are installed by running these commands:
41
41
@@ -119,7 +119,7 @@ The first step in creating NFTs is to create local metadata files that describe
119
119
```
120
120
121
121
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.
123
123
124
124
1. Optional: Edit the `my_collection.json` file to put your information in the `name`, `description`, and `authors` fields.
125
125
@@ -476,14 +476,18 @@ Similarly, you can use the same collection alias because `tznft` keeps aliases s
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
+
479
482
1. Mint the tokens on the testnet.
480
483
The command is the same as for the sandbox:
481
484
482
485
```bash
483
486
tznft mint my-account my_collection --tokens '1, ipfs://abcde12345'
484
487
```
485
488
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.
0 commit comments