eth
titterid
new eth.pro.InfuraProvider( "sepolia",API_KEY,)inf
meth - overrides: overrides.gasLimitmeth
let bFor=i.ut.formatUnits(bBal,6); usdt decimal 6ut
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 metamasktra
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 - 0xae13d989daC2f0dEbFf460aC112a837C89BAa7cdbsc
parse(to bn); format(bn to num)bn
parseUnits(val, "ether") .==. parseEther(val)bn
i.pro.getFeeData() - gas
maxFeePerGas = baseFeePerGas + maxPriorityFeePerGasgas
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 networker
-32000 - add maxFee, maxPrioerr
ancillary bscpro
await cnt.callStatic.owner()fun
generate eth addresswal
transfer only abiabi
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.jsbn
make all geth
sym=await cnt.functions.symbol()[0] cnt
i.eth.utils.formatEther(bal); format bnbn
await Cnt.deploy("Gld","GLD",i.eth.utils.parseEther("0.1") ); args has to match soldep
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 deployingcnt
let wal= ethers.Wallet.fromMnemonic(m);wal
byteslike .==. datahexstringbyte
cheat sheettut
cntFac for deployingfac
cnt.mint(i.adr,tid, tUri, {gasLimit: 500_000,}) - mint nftcnt
apisig
await i.pro.getGasPrice(); weipro
i.ut.formatUnits(gas,"gwei") ; only gweibn
await i.pro.getTransactionCount(i.adr,"latest")tx
await cntFac.getDeployTransaction() - unsig txntxn
cnt.connect(i.wal)cnt
fac=new i.eth.ContractFactory(son.abi,son.bytecode,i.wal)fac
full node - 180GB, arc - 2.3TBnode