How to create customized NFT contract on AZero to work with ArtZero?
In this article, we will walk you step by step how to deploy a standard NFT contract on AZERO Testnet so it will work on ArtZero NFT…
How to create customized NFT contract on AZero to work with ArtZero?
In this article, we will walk you step by step how to deploy a standard NFT contract on AZERO Testnet so it will work on ArtZero NFT Marketplace. This guide is for anyone who wants to create a customized contract like 5k or 10k collection with features like minting with fee or whitelist.
Unlike Smart Contract on EVM-based network like Ethereum, Polygon … etc, in which you have to deploy code for every contract. In ink!, the deployment of a contract can be seen as two steps:
- Deployment of a code. The code is stored on-chain and identified by code-hash.
- Instantiate a contract based on a deployed code hash. A code hash can be used to create multiple contracts.
To make it easier for you, we already compiled and deployed the code hash for the standard NFT contracts. The contracts are available at https://github.com/ArtZero-io/Contracts
If you want to customize the contract further, you can edit the code and follow this instructions to compile and deploy the new code. https://docs.alephzero.org/installing-required-tools
Step 1: Get your wallet ready on Chrome/Firefox Browser
Follow this to get your wallet installed if you havent got one https://docs.artzero.io/getting-started/installing-a-wallet
Step 2: Topup your account with some SZERO
Visit https://faucet.test.azero.dev and get free airdrop
Step 3: Adding the Code Hash
Visit https://contracts-ui.substrate.io/?rpc=wss://ws.test.azero.dev and click on Add New Contract then Use On-chain Contract Code

Add this code hash to the code hash field 0x1a97dd20dfc3dd3fab1665e725e59c98b0be4d77770ded627018932981632c1e Enter any name you want in code bundle name field and drop metadata.json file to contract ABI field. File can be download at https://github.com/ArtZero-io/Contracts/blob/feature/ink-4-version/Azero_Contracts/contracts/psp34_standard/metadata.json

Step 4: Deploy your own NFT contract
Click Next and fill the NFT name, NFT symbol, the total supply of the collection and how much you want to set for public minting. Remember to the Deployment salt should be ON and select the right account for contract owner. The Owner of the contract must be the same as the Caller

Click Next and then Upload and Instantiate

Step 5: Mint your NFT
Once contract is deployed, you can interact with it via the contract UI. Select the mint() function from the Message to Send and Click Call Contract to mint the NFT

Step 6: Check your NFT balance
You can use balanceOf() and ownerOf() to check balance of any account

Step 7: Set the metadata json for the contract.
If you follow the Hashlip Art Engine to create your art work, you should have uploaded to Pinata or NFT.storage or any IPFS service your metadata json folder and Image folder. Copy the CID of the Metadata Folder.
How to use NFTUp to upload your work to IPF: https://nft.storage/docs/how-to/nftup/
Look for setBaseUri() function and click Call Contract

Enter your ipfs link as of ipfs://<CID>/ to the uri field and Execute. Make sure you use the account you set as owner of the contract.
Your contract is now ready to work with ArtZero platform.
Step 8: Get the contract address
On the top of the Contract UI, Copy to get the contract address.

Step 9: Create Collection in Advanced Mode
Now go to ArtZero platform, https://artzero.io After logging in your account, navigate to My Account -> My Collections Click on Add Collection button and select Advanced Mode

Enter the contract address to NFT Contract Address field, enter the name of your Collection and some descriptions with images.
NFT royalties give you a percentage of the sale price each time your NFT creation is sold on a marketplace. Select Royal Fee and enter the percentage amount you want to collect.

Click Submit Add New Collection and Approve the Collection
Congratulations, you have successfully created your customized NFT contract and submitted to ArtZero. Once our team approves your submission, it will be active in the marketplace.
메타데이터
- post_id
- a14c8f17f90a
- slug
- how-to-create-nft-contract-on-azero-to-work-with-artzero-a14c8f17f90a
- url
- https://medium.com/@artzero_io/how-to-create-nft-contract-on-azero-to-work-with-artzero-a14c8f17f90a
- canonical_url
- https://medium.com/@artzero_io/how-to-create-nft-contract-on-azero-to-work-with-artzero-a14c8f17f90a
- author_url
- https://medium.com/@artzero_io
- status
- ok
- fetched_at
- 2026-08-10 22:06:59