MCPcopy Create free account
hub / github.com/wevm/viem / isChain

Function isChain

scripts/generateTokenLookup.ts:132–141  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

130}
131
132function isChain(value: unknown): value is Chain {
133 return (
134 typeof value === 'object' &&
135 value !== null &&
136 'id' in value &&
137 Number.isInteger(value.id) &&
138 'name' in value &&
139 typeof value.name === 'string'
140 )
141}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected