A tutorial that teaches how to make dynamic NFTs that evolve based on onchain or offchain actions.
-g
flag. Depending on your setup, you may need to use sudo.
-w
flag to specify a private key along with the -t
flag to signal you’re using ETH on Base.
In all of these CLI examples, make sure to replace the value of the -w
parameter with your own private key.
The fund
command accepts a value in atomic units, 0.1 ETH is equal to 100000000000000000 in atomic units.
Next, use the Irys CLI to upload each of the images to the Irys Devnet.
Uploads to Irys’s devnet are kept for ~60 days and are paid for using free tokens available from faucets.
https://gateway.irys.xyz/94TNg3UUKyZ96Dj8eSo9DVkBiivAz9jT39jjMFeTFvm3
. To convert that to a mutable-style URL, interpolate it by adding /mutable/
after the domain and before the transaction ID.
Your final URL will be similar to https://gateway.irys.xyz/mutable/94TNg3UUKyZ96Dj8eSo9DVkBiivAz9jT39jjMFeTFvm3
.
Mint
function, enter the wallet address you want to mint the NFT to and the metadata URL (e.g. https://gateway.irys.xyz/mutable/94TNg3UUKyZ96Dj8eSo9DVkBiivAz9jT39jjMFeTFvm3
) from the previous step.Root-TX
equal to the transaction ID of your first transaction. In my example, I pass the value of 94TNg3UUKyZ96Dj8eSo9DVkBiivAz9jT39jjMFeTFvm3
, however make sure to change this to match your unique transaction ID.