| tit | ter | id |
| data: contract.methods.transfer(adr, Web3.utils.toWei(amount)).encodeABI() | tx | | |
| toWei with ERC20 (X) | meth | | |
| await cnt.methods.balanceOf(a[0]).call() | bal | | |
| const web3 = new Web3(window.ethereum) | weth | | |
| tx.sign(pri) | tx | | |
| Number(bal)/Math.pow(10,18) | bn | | |
| let bal=await cnt.methods.balanceOf(acc).call() | meth | | |
| minAbi | abi | | |
| const { Web3 } = require('web3'); | web3 | | |
| web3 is not a contructor -> require("web3").Web3 | err | | |
| await cnt.methods.transfer(cnt.options.address,uni).send(opt) | transfer | | |
| gEth=await web3.utils.fromWei(gBal,"ether") | ut | | |
| let cnt=new web3.eth.Contract(abi,bepAdr) | cnt | | |
| weth.on("chainChanged",()=>window.location.reload() ) | mm | | |
| const web3 = new Web3("https://cloudflare-eth.com") | node | | |
| connect mm | mm | | |
| const Moralis = require('moralis/node'); | mor | | |
| tx - hard, mid, easy | tx | | |
| send tx | act | | |
| data = tx.encodeABI(); | act | | |
| myMeth.send() vs sendSignedTransaction | act | | |
| crypto.randomBytes(8).toString('hex'); | nonce | | |
| ethereumjs-tx -> @ethereumjs/tx | tx | | |
| return msg.sender - VM Exception while processing transaction: revert error | err | | |
| act.methods.set(345).send(frm).then( r=>{cl(r)}) | act | | |
| returned values arent valid -> contract not on ropsten | err | | |
| let wei=w3.utils.fromWei(r,"ether") | utils | | |
| myContract.methods.setValue(123,'ABC') | act | | |
| ,bal=w3.eth.getBalance(pri.adr).then(cl) | bal | | |
| web3js cdn | cdn | | |
| acc=web3.eth.accounts.create() | acc | | |
| moonbeam dev | moon | | |
| let bal= web3.eth.getBalance(wal,(e,r)=>{ cl(web3.utils.fromWei(r) ) }) | bal | | |
| curl -LSs https://raw.githubusercontent.com/gochain/web3/master/install.sh | cli | | |