Skip to content

SolanaWalletProvider

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / SolanaWalletProvider

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

Injected Solana wallet provider interface This is what Phantom/Solflare/etc inject into window

optional isPhantom: boolean

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

Provider is Phantom


optional isSolflare: boolean

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

Provider is Solflare


optional isBackpack: boolean

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

Provider is Backpack


publicKey: SolanaPublicKey | null

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

Public key when connected


isConnected: boolean

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

Whether wallet is connected

connect(options?): Promise<{ publicKey: SolanaPublicKey; }>

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

Connect to wallet

boolean

Promise<{ publicKey: SolanaPublicKey; }>


disconnect(): Promise<void>

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

Disconnect from wallet

Promise<void>


signMessage(message, encoding?): Promise<{ signature: Uint8Array; }>

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

Sign a message

Uint8Array

"utf8"

Promise<{ signature: Uint8Array; }>


signTransaction<T>(transaction): Promise<T>

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

Sign a transaction

T extends SolanaTransaction | SolanaVersionedTransaction

T

Promise<T>


signAllTransactions<T>(transactions): Promise<T[]>

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

Sign multiple transactions

T extends SolanaTransaction | SolanaVersionedTransaction

T[]

Promise<T[]>


signAndSendTransaction<T>(transaction, options?): Promise<{ signature: string; }>

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

Sign and send transaction

T extends SolanaTransaction | SolanaVersionedTransaction

T

SolanaSendOptions

Promise<{ signature: string; }>


on(event, handler): void

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

Event handling

"connect" | "disconnect" | "accountChanged"

(…args) => void

void


off(event, handler): void

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

"connect" | "disconnect" | "accountChanged"

(…args) => void

void