Saros Super App
Integrate Saros Super App easily through our developer guide down here
Solana DApps Integration
Welcome to Saros Wallet Developer Guide. This documentation contains guides for developers to get started developing on Saros Wallet
The easiest way to detect to Saros Wallet
Check if the provider is window.saros
, if not, please replace it with the exclusive Saros Wallet provider window.saros
.
To connect Saros Extension Wallet
To connect Saros Extension means to access the user's account(s).
To disconnect Saros Extension Wallet
To disconnect Saros Extension, please use:
To experience functions
Once your account is connected, let's start experiencing more functions.
Get Current Account
return Promise<Array[String]>
If wallet can not be found, return
[]
instead ofthrow Error
Check wallet whether exists or not
return Promise<{data: Boolean}>
Sign Transaction
In order to send a message for the user to sign, a web application must:
Provide a hex or UTF-8 encoded string as a Uint8Array.
return: `Promise<({signature: base58, publicKey: PublicKey})>
Signing and Sending Multiple Transactions
Verify Signature
return Promise<boolean>
To handle events
List of events
Currently we only support some action event from wallet extension
Events
Trigger
disconnect
Receive when disconnect from Extension
Method
Description
on(event, callback)
Add event listener
off(event, callback)
Remove event listener
Last updated