Provider API Methods
Using the Sats Connect methods is the easiest way to format the request strings that get passed down to our actual provider method parameters. Below is all of the methods we support directly on the provider.
Provider Methods
Connect
Connect
Prompts a connection to a user's Magic Eden Wallet account.
Params
Without using Sats Connect, you could encode your request payload like below. However, getAddress takes care of this for you
Response
Address
Response Properties
Address
Response PropertiessignMessage
signMessage
Prompts to sign a message with the user's connected Magic Eden Wallet account
Params
Without using Sats Connect, you could encode your request payload like below. However, signMessage takes care of this for you
Where protocol accepts either 'BIP322'
or 'ECDSA'
and defaults to the former if no value is provided. By default all signatures will follow the up to date bip322 standard, but certain apps require legacy signing. Passing in 'ECDSA'
will ensure legacy signing only for segwit/payment addresses.
Response
signTransaction
signTransaction
Prompts to sign a PSBT with the user's connected Magic Eden Wallet account.
Params
Without using Sats Connect, you could encode your request payload like below. However, signTransaction takes care of this for you
Response
SignTransactionResponse
Response Properties
SignTransactionResponse
Response PropertiessendBtcTransaction
sendBtcTransaction
Prompts to send BTC from the user's connected Magic Eden Wallet account.
Params
Without using Sats Connect, you could encode your request payload like below. However, sendBtcTransaction takes care of this for you
Response
signMultipleTransactions (custom)
signMultipleTransactions (custom)
Prompts to sign multiple PSBTs under one approval with the user's connected Magic Eden Wallet account. This is currently a private wallet method that is whitelisted to the magic eden marketplace domain
Params
This is a custom feature of the Magic Eden Wallet and thus cannot be invoked with sats-connect, as you have the choice to do with the other provider methods. Rather, you can call this method with a similar request string as signTransaction
You can then pass this stringified request into the provider method like so: window.magicEden.bitcoin.signMultipleTransactions(request)
Response
SignTransactionResponse
Response Properties
SignTransactionResponse
Response PropertiesLast updated