Developer Portal

Build on GhostChain

EVM-compatible · Solidity 0.8.24 · Foundry-first workflows · GST gas token · ghost_ RPC namespace

Quick Start

Use Ghost-native SDKs and the ghost_ RPC namespace only.

01

Install ghost-sdk-core

pnpm add @ghostchain/ghost-sdk-core
02

Connect to GhostChain L1

import { createGhostProvider } from "@ghostchain/ghost-sdk-core";
const provider = createGhostProvider({ chain: "ghostchain" });
03

Query ghost_chainId

const chainId = await provider.ghostChainId();
console.log(chainId);
04

Query GST balance

const balance = await provider.ghostGetBalance(address);
console.log("GST:", balance);

Provider Targets

These RPC targets are sourced directly from the canonical runtime config.

ChainRPC URL
ghostchain https://rpc.ghostchain.cloud
ghostl2 https://ghostchain.cloud/rpc/l2
ghostl3 https://ghostchain.cloud/rpc/l3

Resources

Stay on the Ghost-native toolchain and surfaces.

ghost-sdk-core

Ethers-free SDK and the preferred integration path for new code.

GhostScan

Browse L1, L2, and L3 transactions and contracts from one explorer.

Foundry Profile

Forge configuration, remappings, and lint expectations for Ghost-native contracts.

Docs

Architecture, API reference, and migration guidance for Ghost-native applications.

Project Surface Map

Unified project map across apps, packages, and services. Chain IDs: L1 14000101, L2 901, L3 903.

app

GhostApp Landing

Primary public GhostChain landing surface.

/

app

GhostScan

Explorer runtime dashboard and chain visibility.

/explorer

app

Developers

Developer onboarding, docs, and runtime references.

/developers

app

Governance

Governance workflow and routing-law advisory context.

/governance

app

Project Map

Workspace-wide catalog for apps, packages, and services.

/project

package

@ghostchain/ghost-sdk-core

Preferred Ghost-native SDK path without direct ethers dependency.

packages/ghost-sdk-core/

package

@ghostchain/routing-law

Canonical routing-law enforcement between GhostL3, GhostL2, and GhostChain.

packages/routing-law/

service

ghost-site

Unified public site and API surface for runtime, docs, and project maps.

apps/site/

service

ghost-brain-core

AI core runtime (health and validator summary endpoints).

http://ghost-brain-core:7900

service

ghost-indexer

Indexer runtime for chain data ingestion and exposure.

http://ghost-indexer:7794