RouterDeps
Defined in: router.ts:123
Properties
Section titled “Properties”approvals
Section titled “approvals”approvals:
ApprovalQueue
Defined in: router.ts:126
defaultChain?
Section titled “defaultChain?”
optionaldefaultChain?:string
Defined in: router.ts:135
networks
Section titled “networks”networks:
NetworksTable
Defined in: router.ts:125
permissions
Section titled “permissions”permissions:
PermissionStore
Defined in: router.ts:124
Methods
Section titled “Methods”accounts()
Section titled “accounts()”accounts():
Promise<string[]>
Defined in: router.ts:128
EVM addresses the wallet exposes, active account first. Empty when locked or without a wallet.
Returns
Section titled “Returns”Promise<string[]>
emit()
Section titled “emit()”emit(
origin,event,data):void
Defined in: router.ts:132
Push an EIP-1193 event to every page of origin.
Parameters
Section titled “Parameters”origin
Section titled “origin”string
string
unknown
Returns
Section titled “Returns”void
refuse()?
Section titled “refuse()?”
optionalrefuse(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.
Parameters
Section titled “Parameters”origin
Section titled “origin”string
Returns
Section titled “Returns”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.
Parameters
Section titled “Parameters”network
Section titled “network”method
Section titled “method”string
params
Section titled “params”unknown[]
Returns
Section titled “Returns”Promise<unknown>
sign()?
Section titled “sign()?”
optionalsign(input):Promise<unknown>
Defined in: router.ts:134
The review flow for signing methods. Absent → 4200.
Parameters
Section titled “Parameters”accounts
Section titled “accounts”string[]
method
Section titled “method”string
network
Section titled “network”origin
Section titled “origin”string
params
Section titled “params”unknown[]
Returns
Section titled “Returns”Promise<unknown>