How To Connect To Moonbeam With Magic

How To Connect To Moonbeam With Magic

Installation

Via Magic SDK, you can connect to Moonbeam's Moonbase Alpha Testnet. Moonbeam is EVM compatible so you can directly follow the Ethereum installation.

Note: Moonbeam has not yet launched their mainnet, so this is for connecting to their Moonbase Alpha Testnet.

Configure Moonbeam

Testnet

Testnet Block Explorer URL: https://moonbase.subscan.io/

const customNodeOptions = { rpcUrl: 'https://rpc.testnet.moonbeam.network', chainId: 1287 } // Setting network to Moonbase Alpha Testnet const magic = new Magic('YOUR_PUBLISHABLE_TEST_API_KEY', { network: customNodeOptions });

How To Connect To Moonbeam With Magic