This commit is contained in:
Dima
2023-02-09 14:07:18 +04:00
committed by GitHub
parent c660c57b6f
commit 0f1f72ff41
7 changed files with 10264 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import Web3 from 'web3';
const web3 = new Web3("http://localhost:3000");
async function main() {
const bn = await web3.eth.getBlockNumber()
console.log(bn)
const resp = await web3.eth.getTransaction("0x8bad403edde37642e4dab6c91eeca77b979fce1c979c14ca8755f5c3573eaeb4")
console.log(resp)
}
main();