Skip to content
docs

NetworksTable

Defined in: networks.ts:94

Shipped networks plus the ones the user accepted from sites, persisted. Lookup by CAIP-2; a custom entry for a shipped chain is ignored (the build’s RPC list wins — a site must not be able to replace Ethereum’s endpoints).

new NetworksTable(storage, defaults?): NetworksTable

Defined in: networks.ts:100

JsonStorage<EvmNetwork[]>

readonly EvmNetwork[] = DEFAULT_NETWORKS

NetworksTable

add(network): Promise<void>

Defined in: networks.ts:110

EvmNetwork

Promise<void>


get(caip2): Promise<EvmNetwork | null>

Defined in: networks.ts:106

string

Promise<EvmNetwork | null>


list(): Promise<EvmNetwork[]>

Defined in: networks.ts:102

Promise<EvmNetwork[]>


remove(caip2): Promise<void>

Defined in: networks.ts:119

string

Promise<void>