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
  • Direct Integration
  • The Bitcoin Wallet Standard
  • Sats-Connect
  • Demo
  1. Bitcoin

Diving into Bitcoin

PreviousWallet IntroductionNextDetecting the Provider

Last updated 10 months ago

The Magic Eden wallet has native support for all things Bitcoin, Ordinals and Runes. Since there are currently not as many go-to wallet frameworks, this section will give you a step by step walkthrough on how to integrate the ME wallet into your dApp. We'll also explore creating and signing PSBTs (partially signed Bitcoin transactions).

Direct Integration

The most straightforward way to interact with the ME wallet on the Bitcoin network is via the provider that is globally available at window.magicEden.bitcoin. This unique namespace ensures that the ME BTC provider is always available in the window. The ME BTC provider also attempts to inject at window.BitcoinProvider, but this can occasionally clash if users have multiple Bitcoin browser wallets installed.

The Bitcoin Wallet Standard

The ME Bitcoin wallet makes use of the , an extension of the chain agnostic . This standard makes use of a set of interfaces and conventions designed to improve the user experience and developer experience of wallets and applications. You can use these libraries to connect to the ME wallet without locating the provider directly if you so choose.

Sats-Connect

The provider also extends methods from , an easy-to-understand javascript library that allows apps to interact with Bitcoin wallets. Sats Connect enables developers to easily retrieve user wallet addresses + interact with PSBTs

Demo

You can find a code demo that illustrates how to integrate with the ME Wallet, create viable PSBTs, and utilize core sats-connect functions.

Note:

This demo assumes use of the Bitcoin Wallet Standard. By connecting directly to the provider, you can ignore a lot of the boilerplate from the wallet standard libraries

Bitcoin Wallet Standard
Wallet Standard
sats-connect
here
📙
Page cover image