12345import { createClient } from "egov.js"; const client = createClient({ baseUrl: "https://hackathon-blockchain.e.gov.ph", });
egovChain.jsonRpcPOST / sends a JSON-RPC method, optional parameters, and request identifier to the eGovChain endpoint.123456789101112import { egovChain } from "egov.js"; const blockNumber = await egovChain.jsonRpc({ client, body: { id: 1, jsonrpc: "2.0", method: "eth_blockNumber", params: [], }, throwOnError: true, });
x-egov-rpc-catalog extension lists 70 supported variants for chain metadata, blocks, transactions, receipts, calls, logs, filters, tracing, and raw transaction submission.