@foundryprotocol/0gkit-chain
v1.0.1
Published
Neutral 0G chain helpers — explorer URLs, balance, waitForReceipt, testnet faucet. Built on @foundryprotocol/0gkit-core + viem.
Maintainers
Readme
@foundryprotocol/0gkit-chain
Neutral 0G chain helpers built on @foundryprotocol/0gkit-core + viem: explorerUrl,
balance, waitForReceipt, and a testnet faucet.
Install
npm install @foundryprotocol/0gkit-chain @foundryprotocol/0gkit-core viemUse
import { createClient } from "@foundryprotocol/0gkit-core";
import { balance, waitForReceipt } from "@foundryprotocol/0gkit-chain";
const client = createClient({ network: "aristotle" });
const wei = await balance(client, "0xYourAddress");
const receipt = await waitForReceipt(client, "0xTxHash");
console.log(receipt.explorerUrl); // present iff the network has a verified explorerLicense
MIT.
