We've updated our Terms of Service. By continuing to use our services, you agree to the updated Terms.

Moonbeam / Moonriver

Moonbeam / Moonriver

#Overview

Moonbeam is a platform for cross-chain connected applications that unites assets and functionality from many blockchains. As a smart contract platform for building cross-chain connected applications, Moonbeam powers dApps that can access users, assets, and services on any chain.

As Moonbeam is EVM compatible, you can follow the Ethereum documentation to send your first transaction and utilize all other wallet features.

#Configure Moonbeam

#Moonbeam

Javascript
01// Mainnet
02const customNodeOptions = {
03  rpcUrl: 'https://rpc.api.moonbeam.network',
04  chainId: 1284
05}
06
07// Or connect to Moonbeam's Testnet
08const customNodeOptions = {
09  rpcUrl: 'https://rpc.api.moonbase.moonbeam.network',
10  chainId: 1287
11}
12
13const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });

#Moonriver

You can also connect to Moonriver, which is currently live on Kusama, Polkadot's canary network. Moonriver is also EVM compatible so you can directly follow the Ethereum installation.

Javascript
01const customNodeOptions = {
02  rpcUrl: 'https://rpc.api.moonriver.moonbeam.network',
03  chainId: 1285
04}
05
06const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });

#Compatibility

*Some features are not yet compatible such as NFT Viewer and Fiat On-ramps.

Need a feature or see a problem? File an issue on our github repo.

#Resources & Tools