Connect Directly to the ME EVM Provider
Detecting the Provider
const getProvider = () => {
// check if the magicEden object is available
if ('magicEden' in window) {
const magicProvider = window.magicEden?.ethereum;
if (magicProvider?.isMagicEden) {
return magicProvider;
}
}
window.location.href = 'https://wallet.magiceden.io/'
};Connecting
Last updated