Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.22 KB

File metadata and controls

36 lines (25 loc) · 1.22 KB
sidebar_position
3

Deploy Smart Contract

Deploy Ethereum Contract

Once a Contract File has been finalized, it needs to be deployed to a blockchain network to make it operational. NFT Toolbox makes this very simple with the deployEthereumContract function.

The function uses the parameters provided to initialize Contract object to locate the Contract File, establish an ethers.js connection to the Blockchain network, Deploy the contract and initialize it.

After Initializing the Contract Object,

nftToolbox.deployEthereumContract();

:::note The directory path provided as parameter dir to initEthereumContract function must contain a Solidity file with file name same as the parameter name passed to initEthereumContract function. This is the Contract file that will be deployed by NFT Toolbox. :::

Deploy Solana Contract

After drafting your Solana contract, you can deploy it to the Solana network using the deploySolanaContract function.

The deploySolanaContract function doesn't require additional parameters as it uses the information provided during initialization.

nftToolbox.deploySolanaContract();