コンテンツにスキップ

supportedChains

このコンテンツはまだ日本語訳がありません。

const supportedChains: readonly [{ blockExplorers: { default: { apiUrl: "https://api.etherscan.io/v2/api"; name: "PolygonScan"; url: "https://polygonscan.com"; }; }; blockTime: 2000; contracts: { multicall3: { address: "0xca11bde05977b3631167028862be2a173976ca11"; blockCreated: 25770160; }; }; custom?: Record<string, unknown>; ensTlds?: readonly string[]; experimental_preconfirmationTime?: number; extendSchema?: Record<string, unknown>; fees?: ChainFees<undefined>; formatters?: undefined; id: 137; isTestnet: false; name: "Polygon"; nativeCurrency: { decimals: 18; name: "POL"; symbol: "POL"; }; prepareTransactionRequest?: ((args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>) | [(args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>, object]; rpcUrls: { default: { http: readonly ["https://polygon.drpc.org"]; }; }; serializers?: ChainSerializers<undefined, TransactionSerializable<bigint, number>>; sourceId?: number; testnet?: boolean; verifyHash?: (client, parameters) => Promise<boolean>; }, { blockExplorers: { default: { apiUrl: "https://api.etherscan.io/v2/api"; name: "PolygonScan"; url: "https://amoy.polygonscan.com"; }; }; blockTime?: number; contracts: { multicall3: { address: "0xca11bde05977b3631167028862be2a173976ca11"; blockCreated: 3127388; }; }; custom?: Record<string, unknown>; ensTlds?: readonly string[]; experimental_preconfirmationTime?: number; extendSchema?: Record<string, unknown>; fees?: ChainFees<undefined>; formatters?: undefined; id: 80002; isTestnet: true; name: "Polygon Amoy"; nativeCurrency: { decimals: 18; name: "POL"; symbol: "POL"; }; prepareTransactionRequest?: ((args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>) | [(args, options) => Promise<PrepareTransactionRequestParameters<Chain | undefined, Account | undefined, Chain | undefined, `0x${string}` | Account | undefined, PrepareTransactionRequestRequest<Chain | undefined, Chain | undefined, Chain | undefined>>>, object]; rpcUrls: { default: { http: readonly ["https://rpc-amoy.polygon.technology"]; }; }; serializers?: ChainSerializers<undefined, TransactionSerializable<bigint, number>>; sourceId?: number; testnet: true; verifyHash?: (client, parameters) => Promise<boolean>; }]

Defined in: src/chains/index.ts:20

All chains kawasekit supports, in priority order.

Exposed as a readonly tuple — not a Map — so that bundlers can tree-shake chains a consumer never references.

Example

import { supportedChains } from "kawasekit";
for (const chain of supportedChains) {
console.log(chain.id, chain.name);
}