Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Returned error: The method eth_sendTransaction does not exist/is not available
- const cacheAddress_ = "0xDD963fCdD32ccC802470CdB85A634dE8A47E9257"
- const circulationAddress_ = "0x2dA320D8efF599f11Fe575124020743c9c2E8088"
- var web3 = new Web3(new Web3.providers.HttpProvider("https://ropsten.infura.io/v3/API_KEY"))
- async function transfer() {
- const contract = new web3.eth.Contract(lvn.ABI, lvn.address)
- const block = await contract.methods.transfer(circulationAddress_, new BigNumber(10**9*10**18)).send({ from: cacheAddress_ })
- const circulationBalance = await contract.methods.balanceOf(circulationAddress_).call()
- const cacheBalance = await getCacheBalance()
- console.log({ circulationBalance, cacheBalance })
- }
- transfer()
Add Comment
Please, Sign In to add comment