コンテンツにスキップ

KawaseChain

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

Defined in: src/chains/polygon.ts:19

A viem Chain extended with kawasekit-specific metadata.

All standard chain fields (id, rpcUrls, blockExplorers, nativeCurrency, …) are inherited from viem’s Chain. kawasekit adds only routing flags here; per-token deployment info lives in src/tokens/.

Example

import { polygon } from "kawasekit";
console.log(polygon.id); // 137
console.log(polygon.isTestnet); // false

Extends

  • Chain

Properties

blockExplorers?

optional blockExplorers?: object

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:15

Collection of block explorers

Index Signature

[key: string]: ChainBlockExplorer

default

default: ChainBlockExplorer

Inherited from

Chain.blockExplorers


blockTime?

optional blockTime?: number

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:20

Block time in milliseconds.

Inherited from

Chain.blockTime


contracts?

optional contracts?: object

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:22

Collection of contracts

Index Signature

[key: string]: ChainContract | {[sourceId: number]: ChainContract | undefined; } | undefined

ensRegistry?

optional ensRegistry?: ChainContract

ensUniversalResolver?

optional ensUniversalResolver?: ChainContract

erc6492Verifier?

optional erc6492Verifier?: ChainContract

multicall3?

optional multicall3?: ChainContract

Inherited from

Chain.contracts


custom?

optional custom?: Record<string, unknown>

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:59

Custom chain data.

Inherited from

Chain.custom


ensTlds?

optional ensTlds?: readonly string[]

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:33

Collection of ENS TLDs for the chain.

Inherited from

Chain.ensTlds


experimental_preconfirmationTime?

optional experimental_preconfirmationTime?: number

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:41

Preconfirmation time in milliseconds.

Inherited from

Chain.experimental_preconfirmationTime


extendSchema?

optional extendSchema?: Record<string, unknown>

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:61

Extend schema.

Inherited from

Chain.extendSchema


fees?

optional fees?: ChainFees<ChainFormatters | undefined>

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:63

Modifies how fees are derived.

Inherited from

Chain.fees


formatters?

optional formatters?: ChainFormatters

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:65

Modifies how data is formatted and typed (e.g. blocks and transactions)

Inherited from

Chain.formatters


id

id: number

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:35

ID in number form

Inherited from

Chain.id


isTestnet

readonly isTestnet: boolean

Defined in: src/chains/polygon.ts:21

true for test networks, false for production networks.


name

name: string

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:37

Human-readable name

Inherited from

Chain.name


nativeCurrency

nativeCurrency: ChainNativeCurrency

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:39

Currency used by chain

Inherited from

Chain.nativeCurrency


prepareTransactionRequest?

optional prepareTransactionRequest?: PrepareTransactionRequestFn | [PrepareTransactionRequestFn, object]

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:67

Function to prepare a transaction request. Runs before the transaction is filled.

Inherited from

Chain.prepareTransactionRequest


rpcUrls

rpcUrls: object

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:43

Collection of RPC endpoints

Index Signature

[key: string]: ChainRpcUrls

default

default: ChainRpcUrls

Inherited from

Chain.rpcUrls


serializers?

optional serializers?: ChainSerializers<ChainFormatters | undefined, TransactionSerializable>

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:81

Modifies how data is serialized (e.g. transactions).

Inherited from

Chain.serializers


sourceId?

optional sourceId?: number

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:48

Source Chain ID (ie. the L1 chain)

Inherited from

Chain.sourceId


testnet?

optional testnet?: boolean

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:50

Flag for test networks

Inherited from

Chain.testnet


verifyHash?

optional verifyHash?: ChainVerifyHashFn

Defined in: node_modules/.pnpm/viem@2.50.4_typescript@6.0.3_zod@4.4.3/node_modules/viem/_types/types/chain.d.ts:83

Chain-specific signature verification.

Inherited from

Chain.verifyHash