Provider API Methods
The ME Wallet follows the specs defined in the Solana Wallet Standard
Provider Methods
Connect
Connect
Prompts a connection to a user's Magic Eden Wallet account.
Params
Property
Type
Description
onlyIfTrusted
boolean
Optional flag
Response
Promise<{publicKey: PublicKey}>
PublicKey
signMessage
signMessage
Prompts to sign a message with the user's connected Magic Eden Wallet account
Params
Property
Type
Description
message
Uint8Array | string
The message to sign for
display
"utf8" | "hex"
Encoding format for displaying the message
Response
Promise<{ signature: Bytes; publicKey: PublicKey }>
Bytes & PublicKey
signAndSendTransaction
signAndSendTransaction
Prompts to both sign and send a transaction with the user's connected Magic Eden Wallet account
Params
Property
Type
Description
transactionOrBytes
LegacyOrVersionedTransaction | Bytes
options
SendOptions
Options for sending transactions
where SendOptions
is defined as such:
Response
Promise<{ signature: string | Bytes }>
string | Bytes
The transaction signature
signTransaction
signTransaction
Prompts to sign a transaction (but not send) with the user's connected Magic Eden Wallet account
Params
Property
Type
Description
transactionOrBytes
LegacyOrVersionedTransaction | Bytes
Response
Property
Type
Description
Promise<LegacyOrVersionedTransaction | Bytes>
LegacyOrVersionedTransaction | Bytes
signAllTransactions
signAllTransactions
Prompts to sign all passed transactions (but not send) with the user's connected Magic Eden Wallet account
Prompts to sign a transaction (but not send) with the user's connected Magic Eden Wallet account
Params
Property
Type
Description
transactionOrBytes
(LegacyOrVersionedTransaction | Bytes)[]
Response
Property
Type
Description
Promise(<LegacyOrVersionedTransaction | Bytes>)[]
(LegacyOrVersionedTransaction | Bytes)[]
Last updated