Install ghost-sdk-core
pnpm add @ghostchain/ghost-sdk-core
EVM-compatible · Solidity 0.8.24 · Foundry-first workflows · GST gas token · ghost_ RPC namespace
Use Ghost-native SDKs and the ghost_ RPC namespace only.
pnpm add @ghostchain/ghost-sdk-core
import { createGhostProvider } from "@ghostchain/ghost-sdk-core";
const provider = createGhostProvider({ chain: "ghostchain" });
const chainId = await provider.ghostChainId(); console.log(chainId);
const balance = await provider.ghostGetBalance(address);
console.log("GST:", balance);
These RPC targets are sourced directly from the canonical runtime config.
| Chain | RPC URL |
|---|---|
| ghostchain | https://rpc.ghostchain.cloud |
| ghostl2 | https://ghostchain.cloud/rpc/l2 |
| ghostl3 | https://ghostchain.cloud/rpc/l3 |
Stay on the Ghost-native toolchain and surfaces.
Ethers-free SDK and the preferred integration path for new code.
Browse L1, L2, and L3 transactions and contracts from one explorer.
Forge configuration, remappings, and lint expectations for Ghost-native contracts.
Architecture, API reference, and migration guidance for Ghost-native applications.
Unified project map across apps, packages, and services. Chain IDs: L1 14000101, L2 901, L3 903.
Primary public GhostChain landing surface.
/
Explorer runtime dashboard and chain visibility.
/explorer
Developer onboarding, docs, and runtime references.
/developers
Governance workflow and routing-law advisory context.
/governance
Workspace-wide catalog for apps, packages, and services.
/project
Preferred Ghost-native SDK path without direct ethers dependency.
packages/ghost-sdk-core/
Canonical routing-law enforcement between GhostL3, GhostL2, and GhostChain.
packages/routing-law/
Unified public site and API surface for runtime, docs, and project maps.
apps/site/
AI core runtime (health and validator summary endpoints).
http://ghost-brain-core:7900
Indexer runtime for chain data ingestion and exposure.
http://ghost-indexer:7794