0gkitdocsGitHub

Packages

0gkit is eleven independently published packages under the @foundryprotocol/0gkit-* scope (version 0.1.0). Each page below documents the real exported API, derived from source, with copy-pasteable examples, the errors it throws and how to handle them, and exactly where each package is meant to run.

The primitives (build on @foundryprotocol/0gkit-core)

Wallet

  • @foundryprotocol/0gkit-wallet — Node wallet loaders: fromPrivateKey, fromFile (keystore-v3), fromEnv (auto-pick), fromKMS (AWS KMS), and SIWE (EIP-4361) helpers. Returns a Signer every primitive accepts.
  • @foundryprotocol/0gkit-wallet-react — React + wagmi v2 browser wallet: ZeroGWalletProvider, useWallet, useConnect, useSwitchNetwork, and adaptWagmi.

The surfaces (build on the primitives)

Dedicated guides expand the surfaces: CLI reference, MCP guide, React guide.