πapprove
Last updated
npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-libconst {ERC721} = require('@nest25/evm-chains-lib')
// create a new wallet instance
const erc721 = new ERC721();
const privateKey = "your private key here"
const main = async () => {
// approve erc721 token
const receipt=await erc721.approve(
'klay',
'0xE4eD9066bD1A34994445cAd01Cb9A73A59b8A045',
'1',
'0xE668C72D4C67236A712Ce69A91C74358586f31ed',
privateKey
)
// print receipt
console.log(receipt);
}
main()