Simple NFT smart contract written in Rust.
Follow the instructions in the Stylus quickstart to configure your development environment.
The scripts
folder contains several scripts that make individual calls to perform the most important actions:
- ./scripts/deploy.sh to deploy the contract
- ./scripts/getBalance.sh to get the current balance of an account
- ./scripts/mint.sh to mint an NFT
- ./scripts/burn.sh to burn an NFT
- ./scripts/transfer.sh to transfer an NFT
- ./scripts/getTokenUri.sh to get the tokenUri of an NFT
Remember to set the environment variables in an .env
file.
Instructions to setup a local Stylus dev node can be found here.
The Stylus testnet is an L3 chain that settles to Arbitrum Sepolia. The usual way of obtaining ETH is to bridge it from Arbitrum Sepolia through the Arbitrum Bridge. You can find a list of Arbitrum Sepolia faucets here.