laconicd-deprecated/tests/tooling/ethers/ethers.js

9 lines
213 B
JavaScript
Raw Normal View History

2023-03-14 05:48:42 +00:00
import { ethers } from 'ethers'
// connects to localhost:8545
const provider = new ethers.providers.JsonRpcProvider()
// const signer = provider.getSigner();
2023-03-14 05:48:42 +00:00
const blockNumber = await provider.getBlockNumber()