JavaScript – web3.js
Overview
web3.js is a collection of JavaScript libraries that enable communicating with Ethereum nodes.
Resources
Basic Usage
import { Web3 } from "web3"
const POCKET_URL = "https://<CHAIN_PREFIX>.rpc.grove.city/v1/<APP_ID>"
const provider = new Web3(POCKET_URL)
const blockNumber = await provider.eth.getBlockNumber()
console.log(blockNumber)