1.0.3 • Published 11 months ago

like-ethers v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

like-ethers

Ethereum library for Node.js

Warning: Incomplete but efficient implementation of Ethers.

npm i like-ethers

Usage

const ethers = require('like-ethers')

const provider = new ethers.JsonRpcProvider('https://eth.llamarpc.com')

const blockNumber = await provider.getBlockNumber()
const block = await provider.getBlock(blockNumber, true)
const logs = await provider.getLogs({ fromBlock: blockNumber, toBlock: blockNumber })

API

const provider = new ethers.JsonRpcProvider(url)

Create a provider to make RPC requests over HTTPS.

await provider.destroy()

Close all resources.

const blockNumber = await provider.getBlockNumber()

Get the current block number.

const block = await provider.getBlock(tag, [prefetchTxs])

Get the block.

const logs = await provider.getLogs(filter)

Get the list of logs.

License

MIT

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago