Sending a Transaction
Sending a transaction on the Solana network requires the creation of a Transaction object, followed by the transaction being signed and submitted by the user's Magic Eden wallet.
📗Solana Web3js
For more information on interacting with Solana on the client side, check out the docs for Solana Web3js
For more general Solana development information, check out the courses and resources offered on Soldev
Creating a Transaction
Before you can sign or send a transaction, you must create one! Below is a basic example of creating a tx that has a user send funds right back to themselves
Signing and Sending a Transaction
Once the transaction is created, you can then prompt the user to sign and send it using the signAndSendTransaction
method exposed by the provider
All of this functionality and more can be found at our Solana Demo, so feel free to check it out if you want to learn more about handling wallet functionality when connecting directly to the Magic Eden wallet.
Note 📝 The signAndSendTransaction method supports both Legacy and Versioned Transactions. The newer Versioned Txs allow for Address Lookup Tables
Last updated