πdeployContract
Last updated
npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-lib// import the Nest SDK
const { ERC721 } = require('@nest25/evm-chains-lib');
// create a new instance of the ERC721 class
const erc721 = new ERC721();
// define the main function
const main = async () => {
// call the deployContract function
const contract = await erc721.deployContract(
'klay',
'your-private-key',
'testErc721',
'TEST',
);
// print the contract address and transaction hash
console.log(`Contract deployed at ${contract.address}. Transaction hash: ${contract.deployTransaction.hash}`);
};
// call the main function
main();Contract deployed at 0x6e94C8C4AE6DaE35dAA4f51B448Dbbf03C70890a. Transaction hash: 0xc9824dd43296e500cdd09aecb6e0cb85eac0255bbb3505856a31a9da2b394a60