Skip to content

SolanaWalletProvider

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / SolanaWalletProvider

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

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

optional isPhantom?: boolean

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

Provider is Phantom


optional isSolflare?: boolean

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

Provider is Solflare


optional isBackpack?: boolean

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

Provider is Backpack


publicKey: SolanaPublicKey | null

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

Public key when connected


isConnected: boolean

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

Whether wallet is connected

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

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

Connect to wallet

boolean

Promise<{ publicKey: SolanaPublicKey; }>


disconnect(): Promise<void>

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

Disconnect from wallet

Promise<void>


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

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

Sign a message

Uint8Array

"utf8"

Promise<{ signature: Uint8Array; }>


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

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

Sign a transaction

T extends SolanaTransaction | SolanaVersionedTransaction

T

Promise<T>


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

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

Sign multiple transactions

T extends SolanaTransaction | SolanaVersionedTransaction

T[]

Promise<T[]>


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

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

Sign and send transaction

T extends SolanaTransaction | SolanaVersionedTransaction

T

SolanaSendOptions

Promise<{ signature: string; }>


on(event, handler): void

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

Event handling

"connect" | "disconnect" | "accountChanged"

(…args) => void

void


off(event, handler): void

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

"connect" | "disconnect" | "accountChanged"

(…args) => void

void