πdeployContract
Last updated
npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-lib// import the Nest SDK
const { BulkNft } = require('@nest25/evm-chains-lib');
// create a new instance of the SDK
const bulkNFT = new BulkNft();
// call the deployContract method
const main = async () => {
// deploy a contract on the Polygon network
const contract = await bulkNFT.deployContract(
'polygon',
'dd2cfa6243af4e467dcfe1b45402bfe2bca32acc6d27565b3791db5de1c9dd49',
'bingo',
);
// print the contract address
console.log(contract.address);
expect(contract).toHaveProperty('address');
};
// call the main function
main();Transaction Hash: 0xa81b67ec1e80d5d6c6c6bdc59201437a9be7174108dbfe71b6348f44645f5264, Contract Address: 0x5aAB360f4eEC9C823175711d22D7D0C920D4481a