Skip to content

EIP1193Provider

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / EIP1193Provider

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13339

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

optional isMetaMask?: boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13346

Provider is MetaMask


optional isCoinbaseWallet?: boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13348

Provider is Coinbase Wallet


optional selectedAddress?: string | null

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13350

Selected address (may be undefined before connection)


optional chainId?: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13352

Chain ID in hex format

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

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13341

Make an Ethereum JSON-RPC request

T = unknown

EIP1193RequestArguments

Promise<T>


on(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13343

Event emitter for provider events

string

(…args) => void

void


removeListener(event, handler): void

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13344

string

(…args) => void

void


optional isConnected(): boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13354

Whether provider is connected

boolean