Skip to content

polygon

const polygon: object

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

Polygon mainnet — priority 1 production chain.

Built on viem’s polygon definition (official RPC URLs, block explorers, and POL native currency) plus kawasekit metadata.

Type Declaration

blockExplorers

blockExplorers: object

blockExplorers.default

readonly default: object

blockExplorers.default.apiUrl

readonly apiUrl: "https://api.etherscan.io/v2/api"

blockExplorers.default.name

readonly name: "PolygonScan"

blockExplorers.default.url

readonly url: "https://polygonscan.com"

blockTime

blockTime: 2000

contracts

contracts: object

contracts.multicall3

readonly multicall3: object

contracts.multicall3.address

readonly address: "0xca11bde05977b3631167028862be2a173976ca11"

contracts.multicall3.blockCreated

readonly blockCreated: 25770160

custom?

optional custom?: Record<string, unknown>

ensTlds?

optional ensTlds?: readonly string[]

experimental_preconfirmationTime?

optional experimental_preconfirmationTime?: number

extendSchema?

optional extendSchema?: Record<string, unknown>

fees?

optional fees?: ChainFees<undefined>

formatters?

optional formatters?: undefined

id

id: 137

isTestnet

isTestnet: false = false

name

name: "Polygon"

nativeCurrency

nativeCurrency: object

nativeCurrency.decimals

readonly decimals: 18

nativeCurrency.name

readonly name: "POL"

nativeCurrency.symbol

readonly symbol: "POL"

prepareTransactionRequest?

optional 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

rpcUrls: object

rpcUrls.default

readonly default: object

rpcUrls.default.http

readonly http: readonly ["https://polygon.drpc.org"]

serializers?

optional serializers?: ChainSerializers<undefined, TransactionSerializable<bigint, number>>

sourceId?

optional sourceId?: number

testnet?

optional testnet?: boolean

verifyHash?

optional verifyHash?: (client, parameters) => Promise<boolean>

Parameters

client

Client<Transport, Chain | undefined, Account | undefined, undefined, {[key: string]: unknown; account?: undefined; batch?: undefined; cacheTime?: undefined; ccipRead?: undefined; chain?: undefined; dataSuffix?: undefined; experimental_blockTag?: undefined; key?: undefined; name?: undefined; pollingInterval?: undefined; request?: undefined; transport?: undefined; type?: undefined; uid?: undefined; } | undefined>

parameters

VerifyHashParameters

Returns

Promise<boolean>