mint-nft-python

Get Started

This repository is minting NFT using python. Dependency Libraries are openzeppelin(Solidity), Web3.py and py-solc-x. So you have to install the libraries via npm and pip. If you finished preparing, you can mint the NFT.

$ npm install --prefix=./ @openzeppelin/contracts
$ pip install -r requirements.txt
$ python mint_nft.py

## if you want to use the full-on-chain version. Please do the below script.
$ pyhon mint_nft_onchain.py test.svg

Premise

  • This repository is for Polygon Network.
    • (Probably works on Ethereum Network too!)
  • You have to confirm the solc version on your enviroment. If your solc version is not 0.8.10, please modify the version code of solc in the mint_nft.py.
  • In the case of changing the contract name, please modify the contract name and symbol name in the solidity/MyNFT.sol

Preparing

If you want to mint the NFT using Polygon, you get the below enviroment. And you have to fill parameters in the nft_config.yaml.

Documentation