Skip to content
docs

RouterDeps

Defined in: router.ts:123

approvals: ApprovalQueue

Defined in: router.ts:126


optional defaultChain?: string

Defined in: router.ts:135


networks: NetworksTable

Defined in: router.ts:125


permissions: PermissionStore

Defined in: router.ts:124

accounts(): Promise<string[]>

Defined in: router.ts:128

EVM addresses the wallet exposes, active account first. Empty when locked or without a wallet.

Promise<string[]>


emit(origin, event, data): void

Defined in: router.ts:132

Push an EIP-1193 event to every page of origin.

string

string

unknown

void


optional refuse(origin): string | null | undefined

Defined in: router.ts:140

A reason to refuse every request from origin (reads, eth_accounts, an earlier permission included) with 4100, or nothing. Wire PhishingDetector.refusal.

string

string | null | undefined


rpc(network, method, params): Promise<unknown>

Defined in: router.ts:130

Read-only JSON-RPC over the network’s own RPC list.

EvmNetwork

string

unknown[]

Promise<unknown>


optional sign(input): Promise<unknown>

Defined in: router.ts:134

The review flow for signing methods. Absent → 4200.

string[]

string

EvmNetwork

string

unknown[]

Promise<unknown>