Quai Network Logo

Quai NoCode Deployer

Let's be honest:

Writing and deploying your own smart contract is hard.

You shouldn't need to write code to start bringing your Web3 project to life.

deployERC20.js

1
async function deployERC20() {
2
// Config provider, wallet, and contract factory
3
const provider = new quais.providers.JsonRpcProvider(hre.network.config.url)
4
const wallet = new quais.Wallet(hre.network.config.accounts[0], provider)
5
const ERC20 = new quais.ContractFactory(ERC20Json.abi, ERC20Json.bytecode, wallet)
6
7
// Broadcast deploy transaction
8
const erc20 = await ERC20.deploy(...tokenArgs, { gasLimit: 5000000 })
9
console.log('Deploy tx hash: ' + erc20.deployTransaction.hash)
10
11
// Wait for contract to be deployed (using quais-polling)
12
const deployReceipt = await pollFor(provider, 'getTransactionReceipt', [erc20.deployTransaction.hash], 1.5, 1)
13
console.log('ERC20 deployed to:', deployReceipt.contractAddress)
14
}

We're here to take code out of the equation.

Deploy and interact with your own Tokens and NFTs on Quai Network with no code required.