Skip to content

EIP1193Provider

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / EIP1193Provider

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13266

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

optional isMetaMask: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13273

Provider is MetaMask


optional isCoinbaseWallet: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13275

Provider is Coinbase Wallet


optional selectedAddress: string | null

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13277

Selected address (may be undefined before connection)


optional chainId: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13279

Chain ID in hex format

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

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13268

Make an Ethereum JSON-RPC request

T = unknown

EIP1193RequestArguments

Promise<T>


on(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13270

Event emitter for provider events

string

(…args) => void

void


removeListener(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13271

string

(…args) => void

void


optional isConnected(): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:13281

Whether provider is connected

boolean