ethersjs
npm install -g ethers@5.3
Get Confirmations of BLock
- How to get transaction hash immediately for transaction call? · Issue #511 · ethers-io/ethers.js
- How to wait for certain number of confirmations ? · Issue #229 · ethers-io/ethers.js
TODO
- Set gasLimit and gasPrice on contract transactions · Issue #40 · ethers-io/ethers.js
- Gas estimation failure gives a misleading error message · Issue #1232 · ethers-io/ethers.js
- SERVER_ERROR and INVALID_ARGUMENT errors for version 5.4.1 · Issue #1766 · ethers-io/ethers.js
- Invalid ENS name error when a signer is used instead of an address · Issue #1051 · ethers-io/ethers.js
- Error:%20resolver%20or%20addr%20is%20not%20configured%20for%20ENS%20name%20(argument=%22name%22,%20value=%22%22,%20code=INVALID_ARGUMENT,%20version=contracts/5.0.8)%20%C2%B7%20Issue%20#1234%20%C2%B7%20ethers-io/ethers.js%5D(https://github.com/ethers-io/ethers.js/issues/1234%7CCan't%20catch%20Unhandled%20Rejection%20(Error):%20resolver%20or%20addr%20is%20not%20configured%20for%20ENS%20name%20(argument=%22name%22,%20value=%22%22,%20code=INVALID_ARGUMENT,%20version=contracts/5.0.8)%20%C2%B7%20Issue%20#1234%20%C2%B7%20ethers-io/ethers.js%5D(https://github.com/ethers-io/ethers.js/issues/1234%7CCan't%20catch%20Unhandled%20Rejection%20(Error):%20resolver%20or%20addr%20is%20not%20configured%20for%20ENS%20name%20(argument=%22name%22,%20value=%22%22,%20code=INVALID_ARGUMENT,%20version=contracts/5.0.8)%20%C2%B7%20Issue%20#1234%20%C2%B7%20ethers-io/ethers.js)
- https://docs.ethers.io/v4/api-contract.html
// npm install --save ethers
const { ethers } = require("ethers");
mah_hash = ethers.utils.namehash("auth.eth")
mah_hash = ethers.utils.namehash("paulmullins.eth")
console.log(mah_hash)
const { ethers } = require("ethers");
async function getChainInfo() {
let provider = new ethers.providers.JsonRpcProvider("http://127.0.0.1:8545")
tmpBlockNumber = await provider.getBlockNumber()
console.log(tmpBlockNumber)
tmpChainID = await provider._networkPromise
tmpChainID = tmpChainID.chainId
console.log(tmpChainID)
}
getChainInfo()