laconicd-deprecated/tests/tooling/ethers/ethers.js
2023-03-14 11:18:42 +05:30

9 lines
213 B
JavaScript

import { ethers } from 'ethers'
// connects to localhost:8545
const provider = new ethers.providers.JsonRpcProvider()
// const signer = provider.getSigner();
const blockNumber = await provider.getBlockNumber()