ethcc-arbitrum-testing

1.0.3 • Public • Published

Usage

// Import Web3 and Plugin
import { EthCC } from "ethcc-arbitrum-testing";
import { Web3 } from "web3";

// Initialize RPC and plugin
const web3 = new Web3("https://arbitrum.llamarpc.com");
web3.registerPlugin(new EthCC());

// Use Plugin
async function main() {
  console.log(await web3.ethcc.nitroGenesisBlock());
  console.log(await web3.ethcc.blockL1Num());
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i ethcc-arbitrum-testing

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • santiagodevrel