Magic Eden Wallet Developer Docs
  • 👋Welcome
    • Wallet Introduction
  • 📙Bitcoin
    • Diving into Bitcoin
    • Detecting the Provider
    • Connecting to the Wallet
    • Signing a Message
    • Signing a Transaction
    • Sending BTC
    • Provider API Methods
    • Provider Events
    • FAQs
  • 📗Solana
    • Diving Into Solana
    • Solana Wallet Adapter
    • Connect Directly to the ME Solana Provider
    • Signing a Message
    • Sending a Transaction
    • Provider API Methods
    • Provider Events
    • FAQs
  • 📘EVM
    • Diving into the EVM
    • Connect Directly to the ME EVM Provider
    • Signing a Message
    • Sending a Transaction
    • Library Integrations
      • Wallet Connect
      • Rainbow Kit
      • Wagmi
    • Provider API Methods
    • Provider Events
    • FAQs
  • ❓Resources
    • Demo Apps
    • Logos and Brand Assets
Powered by GitBook
On this page
  • Provider Methods
  • Connect
  • signMessage
  • signAndSendTransaction
  • signTransaction
  • signAllTransactions
  1. Solana

Provider API Methods

PreviousSending a TransactionNextProvider Events

Last updated 10 months ago

The ME Wallet follows the specs defined in the

Provider Methods

Connect

Prompts a connection to a user's Magic Eden Wallet account.

Params

Property

Type

Description

onlyIfTrusted

boolean

Optional flag

Response

Property
Type
Description

Promise<{publicKey: PublicKey}>

PublicKey

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

Property
Type
Description

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

Params

Property

Type

Description

transactionOrBytes

LegacyOrVersionedTransaction | Bytes

options

SendOptions

Options for sending transactions

where SendOptions is defined as such:

export declare type SendOptions = {
    /** disable transaction verification step */
    skipPreflight?: boolean;
    /** preflight commitment level */
    preflightCommitment?: Commitment;
    /** Maximum number of times for the RPC node to retry sending the transaction to the leader. */
    maxRetries?: number;
    /** The minimum slot that the request can be evaluated at */
    minContextSlot?: number;
};

export declare type Commitment = 'processed' | 'confirmed' | 'finalized' | 'recent' | 'single' | 'singleGossip' | 'root' | 'max';

Response

Property
Type
Description

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

Params

Property

Type

Description

transactionOrBytes

LegacyOrVersionedTransaction | Bytes

Response

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

Params

Property

Type

Description

transactionOrBytes

(LegacyOrVersionedTransaction | Bytes)[]

Response

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.

📗
Solana Wallet Standard
PublicKey
PublicKey
Transaction
VersionedTransaction
Transaction
VersionedTransaction
Transaction
VersionedTransaction
Transaction
VersionedTransaction
Transaction
VersionedTransaction