💙Solana
Wallet Connect Supported
Reffer to Wallect Connect Solana doc
Detecting the Provider
ioPay's mobile in-app browser will both inject a ioPay object into the window of any web application the user visits. ioPay will not inject the provider into iframes or sites using http://.
If a ioPay
object exists, Bitcoin & Ordinals dApps can interact with ioPay via the API found at window.ioPay.solana
. To detect if ioPay is installed, an application should check for an additional isIoPay
flag like so:
const isIoPayInstalled = window?.ioPay?.bitcoin?.isIoPay
Sending a Legacy Transaction
Method
signAndSendTransaction
Returns:
Promise
-{'signature': obj, ...}
: A Promise for an object containing thesignature
Example:
Method
signTransaction - Signing a transaction without sending
Returns:
Promise
: A Promise for the signed transaction
Example:
Sending a Versioned Transaction
Method
signAndSendTransaction
Returns:
Promise
: A Promise for the signed transaction
Example:
Signing a Message
Method
signMessage - Send a message for the user to sign, request that the encoded message is signed via the user's ioPay wallet
Returns:
Promise
- String
Example:
Last updated