Provider API Methods
Last updated
Last updated
The ME Wallet follows the specs defined in the
Connect
Prompts a connection to a user's Magic Eden Wallet account.
Property
Type
Description
onlyIfTrusted
boolean
Optional flag
Promise<{publicKey: PublicKey}>
PublicKey
signMessage
Prompts to sign a message with the user's connected Magic Eden Wallet account
Property
Type
Description
message
Uint8Array | string
The message to sign for
display
"utf8" | "hex"
Encoding format for displaying the message
Promise<{ signature: Bytes; publicKey: PublicKey }>
Bytes & PublicKey
signAndSendTransaction
Prompts to both sign and send a transaction with the user's connected Magic Eden Wallet account
Property
Type
Description
transactionOrBytes
LegacyOrVersionedTransaction | Bytes
options
SendOptions
Options for sending transactions
where SendOptions
is defined as such:
Promise<{ signature: string | Bytes }>
string | Bytes
The transaction signature
signTransaction
Prompts to sign a transaction (but not send) with the user's connected Magic Eden Wallet account
Property
Type
Description
transactionOrBytes
LegacyOrVersionedTransaction | Bytes
Property
Type
Description
Promise<LegacyOrVersionedTransaction | Bytes>
LegacyOrVersionedTransaction | Bytes
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
Property
Type
Description
transactionOrBytes
(LegacyOrVersionedTransaction | Bytes)[]
Property
Type
Description
Promise(<LegacyOrVersionedTransaction | Bytes>)[]
(LegacyOrVersionedTransaction | Bytes)[]
The returned of the connected wallet
The signed message in Bytes and the associated that signed
A or object, or the associated bytes.
An unsigned or object, or the associated bytes.
A signed or object, or the associated bytes.
An unsigned or object array, or the associated bytes array.
A signed or object array, or the associated bytes array.