Skip to content

My code samples developed for EVM Blockchains using Solidity, Python, and Brownie framework

Notifications You must be signed in to change notification settings

khaliduddin/nft-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT minting with Python & Solidity

Mint ERC721 token to any EVM compatible chain

This project is implemented using Python and uses Brownie framework to support Solidity smart contract programming.

This smart contract developed in Nftbrownie.sol is a basic implementation to mint an ERC721 token to any Ethereum [EVM] compatible blockchain.

Brownie is a Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

Steps to run the code:

  • Create .env file with Keys in below format:
    PRIVATE_KEY = 0x<--Copy private key of your WALLET Address-->
    WEB3_INFURA_PROJECT_ID = <--Copy Project ID from your Infura account. Provide the network name in brownie-config.yaml-->
  • Change path to Project root directory and Run below command to install brownie
    pip install brownie
  • Once brownie is successfully installed, run below command to install dependency packages and compile Solidity .sol files
  • Deploy the smart contract using the scripts/deploy.py with following command. Specify the network of your choice in place of rinkeby
    brownie run scripts/deploy.py --network rinkeby
  • Mint NFT using the scripts/mintnft.py with following command. Specify the network of your choice in place of rinkeby
    brownie run scripts/mintnft.py --network rinkeby
    Note: Provide any image of your choice from IPFS. I have provided a sample image URI from Pinata already for public usage.
Details of Developer/Team:

About

My code samples developed for EVM Blockchains using Solidity, Python, and Brownie framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published