Skip to content

EIP1193Provider

SIP Protocol API Reference v0.7.2


SIP Protocol API Reference / EIP1193Provider

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9731

EIP-1193 Provider interface Standard interface for Ethereum providers (MetaMask, etc.)

optional isMetaMask: boolean

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9738

Provider is MetaMask


optional isCoinbaseWallet: boolean

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9740

Provider is Coinbase Wallet


optional selectedAddress: string | null

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9742

Selected address (may be undefined before connection)


optional chainId: string

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9744

Chain ID in hex format

request<T>(args): Promise<T>

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9733

Make an Ethereum JSON-RPC request

T = unknown

EIP1193RequestArguments

Promise<T>


on(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9735

Event emitter for provider events

string

(…args) => void

void


removeListener(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9736

string

(…args) => void

void


optional isConnected(): boolean

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:9746

Whether provider is connected

boolean