SolanaWalletProvider
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / SolanaWalletProvider
Interface: SolanaWalletProvider
Section titled âInterface: 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
Properties
Section titled âPropertiesâisPhantom?
Section titled âisPhantom?â
optionalisPhantom?:boolean
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12977
Provider is Phantom
isSolflare?
Section titled âisSolflare?â
optionalisSolflare?:boolean
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12979
Provider is Solflare
isBackpack?
Section titled âisBackpack?â
optionalisBackpack?:boolean
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12981
Provider is Backpack
publicKey
Section titled âpublicKeyâpublicKey:
SolanaPublicKey|null
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12983
Public key when connected
isConnected
Section titled âisConnectedâisConnected:
boolean
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12985
Whether wallet is connected
Methods
Section titled âMethodsâconnect()
Section titled âconnect()âconnect(
options?):Promise<{publicKey:SolanaPublicKey; }>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12987
Connect to wallet
Parameters
Section titled âParametersâoptions?
Section titled âoptions?âonlyIfTrusted?
Section titled âonlyIfTrusted?âboolean
Returns
Section titled âReturnsâPromise<{ publicKey: SolanaPublicKey; }>
disconnect()
Section titled âdisconnect()âdisconnect():
Promise<void>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12993
Disconnect from wallet
Returns
Section titled âReturnsâPromise<void>
signMessage()
Section titled âsignMessage()âsignMessage(
message,encoding?):Promise<{signature:Uint8Array; }>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12995
Sign a message
Parameters
Section titled âParametersâmessage
Section titled âmessageâUint8Array
encoding?
Section titled âencoding?â"utf8"
Returns
Section titled âReturnsâPromise<{ signature: Uint8Array; }>
signTransaction()
Section titled âsignTransaction()âsignTransaction<
T>(transaction):Promise<T>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12999
Sign a transaction
Type Parameters
Section titled âType ParametersâT extends SolanaTransaction | SolanaVersionedTransaction
Parameters
Section titled âParametersâtransaction
Section titled âtransactionâT
Returns
Section titled âReturnsâPromise<T>
signAllTransactions()
Section titled âsignAllTransactions()âsignAllTransactions<
T>(transactions):Promise<T[]>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13001
Sign multiple transactions
Type Parameters
Section titled âType ParametersâT extends SolanaTransaction | SolanaVersionedTransaction
Parameters
Section titled âParametersâtransactions
Section titled âtransactionsâT[]
Returns
Section titled âReturnsâPromise<T[]>
signAndSendTransaction()
Section titled âsignAndSendTransaction()âsignAndSendTransaction<
T>(transaction,options?):Promise<{signature:string; }>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13003
Sign and send transaction
Type Parameters
Section titled âType ParametersâT extends SolanaTransaction | SolanaVersionedTransaction
Parameters
Section titled âParametersâtransaction
Section titled âtransactionâT
options?
Section titled âoptions?âReturns
Section titled âReturnsâPromise<{ signature: string; }>
on(
event,handler):void
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13007
Event handling
Parameters
Section titled âParametersâ"connect" | "disconnect" | "accountChanged"
handler
Section titled âhandlerâ(âŚargs) => void
Returns
Section titled âReturnsâvoid
off(
event,handler):void
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:13008
Parameters
Section titled âParametersâ"connect" | "disconnect" | "accountChanged"
handler
Section titled âhandlerâ(âŚargs) => void
Returns
Section titled âReturnsâvoid