| tit | ter | id |
| new eth.pro.InfuraProvider( "sepolia",API_KEY,) | inf | | |
| meth - overrides: overrides.gasLimit | meth | | |
| let bFor=i.ut.formatUnits(bBal,6); usdt decimal 6 | ut | | |
| create pri key: var id = crypto.randomBytes(32).toString('hex') | acc | | |
| usdt=i.ut.formatUnits(uBal,6) | ut | | |
| i.ut.formatUnits(wethBal,18) | ut | | |
| alc pro - sepolia(x) | alc | | |
| let tx=await gld.transfer(rec,mnt): send from metamask | tra | | |
| tx=await cnt.transfer(a,i.ut.parseUnits("0.1") ) | tx | | |
| ethers.Wallet.createRandom() | wal | | |
| i.cl(wal.address) i.cl(wal.mnemonic.phrase) i.cl(wal.privatekey) | wal | | |
| wal=new eth.Wallet(pe.pri,pro) | wal | | |
| create acc: var wal = new ethers.Wallet(pri); | acc | | |
| testnet wbnb - 0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd | bsc | | |
| parse(to bn); format(bn to num) | bn | | |
| parseUnits(val, "ether") .==. parseEther(val) | bn | | |
| i.pro.getFeeData() - | gas | | |
| maxFeePerGas = baseFeePerGas + maxPriorityFeePerGas | gas | | |
| Pending This txn hash was found in our secondary node and should be picked up by our indexer in a short while. | err | | |
| await cnt0.connect(cWal).estimateGas.approve(h.Radr,Amnt ) | gas | | |
| i.pro.getGasPrice() | gas | | |
| let rec=await tx.wait() | wait | | |
| call_method_exception: Method is not present in your contract. Contract not deployed on the network | er | | |
| -32000 - add maxFee, maxPrio | err | | |
| ancillary bsc | pro | | |
| await cnt.callStatic.owner() | fun | | |
| generate eth address | wal | | |
| transfer only abi | abi | | |
| tx=await cnt.transfer(to,i.ut.parseUnits("0.1") ) | tx | | |
| ,bint=bal.toBigInt() ,bin2=Number(bint) ,bin3=bin2/(1000*1000*1000*1000*1000*1000) | bn | | |
| bn=i.eth.BigNumber.from("1") | bn | | |
| try{tx}catch(e){cl(e.error.code)} | err | | |
| num=bal[0].toNumber(); bn.js | bn | | |
| make all | geth | | |
| sym=await cnt.functions.symbol()[0] | cnt | | |
| i.eth.utils.formatEther(bal); format bn | bn | | |
| await Cnt.deploy("Gld","GLD",i.eth.utils.parseEther("0.1") ); args has to match sol | dep | | |
| bn.toNumber() | bn | | |
| i.eth.utils.formatEther(dat) | utils | | |
| new i.eth.Contract(i.cak,abi,i.pro) | cnt | | |
| await Cnt.callStatic.name() | cnt | | |
| ContractFactory(abi,bcode,pro) is for deploying | cnt | | |
| let wal= ethers.Wallet.fromMnemonic(m); | wal | | |
| byteslike .==. datahexstring | byte | | |
| cheat sheet | tut | | |
| cntFac for deploying | fac | | |
| cnt.mint(i.adr,tid, tUri, {gasLimit: 500_000,}) - mint nft | cnt | | |
| api | sig | | |
| await i.pro.getGasPrice(); wei | pro | | |
| i.ut.formatUnits(gas,"gwei") ; only gwei | bn | | |
| await i.pro.getTransactionCount(i.adr,"latest") | tx | | |
| await cntFac.getDeployTransaction() - unsig txn | txn | | |
| cnt.connect(i.wal) | cnt | | |
| fac=new i.eth.ContractFactory(son.abi,son.bytecode,i.wal) | fac | | |
| full node - 180GB, arc - 2.3TB | node | | |