Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.14 KB

README.md

File metadata and controls

45 lines (26 loc) · 1.14 KB

Getting started with the Palm Network: Training toolkit

Training code for Palm documentation. This repo aims at supporting those learning how to deploy an NFT contract and mint an NFT on Palm using Hardhat and Ethers.js

This repo contains all the finished code explained at:

Installation

    npm install

Configuration

Add an .env file matching the variables found in hardhat.config.js:

  • INFURA_PROJECT_ID
  • PRIVATE_KEY
  • PUBLIC_KEY
  • CONTRACT_ADDRESS

Usage

Deploy contract to Palm Testnet:

    npx hardhat run scripts/deploy.js --network palm_testnet

Deploy contract to Palm Mainnet:

    npx hardhat run scripts/deploy.js --network palm_mainnet

Mint NFT on Palm Testnet:

    npx hardhat run scripts/mint.js --network palm_testnet

Mint NFT on Palm Mainnet:

    npx hardhat run scripts/mint.js --network palm_mainnet

Bulk Mint NFT on Palm testnet:

    npx hardhat run scripts/bulk-mint.js --network palm_mainnet
    ```