Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Chain

The chain configuration consumed by createTransport and the client factories.

Definition

type Chain = {
  id: ChainId               // string
  name: string
  url: string
  nativeCoin: Denom
  blockExplorer: {
    name: string
    txPage: string
    contractPage: string
    accountPage: string
  }
}

Fields

idstring. Chain id (e.g. "dango-1", "dango-testnet-1").

namestring. Human-readable name.

urlstring. GraphQL endpoint URL.

nativeCoinDenom. The chain's native gas token.

blockExplorer — explorer URL templates with ${txHash} / ${address} placeholders.

Construction

The SDK ships four ready-made chain configs:

import { local, devnet, testnet, mainnet } from "@left-curve/sdk"

To define a custom chain, use the internal defineChain helper or build the object literally.

See also