Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add magic Eden wallet 👽 #141

Open
CrystallineButterfly opened this issue Jan 23, 2025 · 0 comments
Open

Please add magic Eden wallet 👽 #141

CrystallineButterfly opened this issue Jan 23, 2025 · 0 comments

Comments

@CrystallineButterfly
Copy link

CrystallineButterfly commented Jan 23, 2025

Hello there, opening this to ask for magic Eden wallet connectivity to debridge please 🫡 @artyukh @devDesu @biryukovmaxim @mncdg @kotokrad @AlekseiSmirnov @borislitv @kudryaA @merrymari (Not sure who to tag so tagged all contributors, and not sure which repo so went with this one) 😋

Currently not possible to connect and therefore hinders usage for many users that use magic Eden wallet,

Here is an example of adding it, using js, easily adaptble in ts or python even also, hopefully helpful:

For Solana:
Install:

   npm install @solana/wallet-adapter-react @solana/wallet-adapter-wallets @solana/web3.js

Then similar to this:

import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
import { MagicEdenWallet } from '@solana/wallet-adapter-wallets';
import { clusterApiUrl } from '@solana/web3.js';

const network = clusterApiUrl('mainnet-beta');
const wallets = [new MagicEdenWallet()];

<ConnectionProvider endpoint={network}>
    <WalletProvider wallets={wallets} autoConnect>
        {/* Your app */}
    </WalletProvider>
</ConnectionProvider>

Docs: Solana Wallet Adapter

Also has ethereum!/base/few other chains on it
For Ethereum/EVM:
Use window.magiceden.ethereum:

if (window.magiceden && window.magiceden.ethereum) {
    const provider = window.magiceden.ethereum;
    // Connect etc interact
}

Docs: Magic Eden Wallet Docs

Connect Button:

  • Adapt to current wallet setups of course; can use WalletMultiButton for Solana:
    import { WalletMultiButton } from '@solana/wallet-adapter-react-ui';
    <WalletMultiButton />

Links:

Thank you for reading this issue, may help, may not 🤘

All the best - K42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant