// const { ChangeChainProvider, Contract, Wallet } = require('changejs');constprovider=newChangeChainProvider('https://node.changechain.org');// ABI and Contract Addressconstabi= [// ABI array of the contract];constcontractAddress='0xCONTRACT_ADDRESS';// Initialize wallet and contractconstprivateKey='0xYOUR_PRIVATE_KEY';constwallet=newWallet(privateKey, provider);constcontract=newContract(contractAddress, abi, wallet);// Call a contract functionasyncfunctiongetValue() {constvalue=awaitcontract.functions.getValue();console.log('Contract Value:', value);}// Send a transaction to the contractasyncfunctionsetValue(newValue) {consttx=awaitcontract.functions.setValue(newValue);awaittx.wait(); // Wait for transaction confirmationconsole.log('Value Set Successfully');}getValue();setValue(42);