How to connect to Arbitrum L2 with Magic

How to connect to Arbitrum L2 with Magic

Arbitrum implementation guide

How to use Magic with Ethereum and Arbitrum

View guide

Resources

Demo

Installation

Via Magic SDK, you can connect to Arbitrum. Arbitrum is EVM compatible so you can directly follow the Ethereum installation.

Configure Arbitrum

Testnet

Testnet Block Explorer: https://rinkeby-explorer.arbitrum.io

Note: The Arbitrum mainnet is for currently gated for developers only. Only the testnet is public.

const customNodeOptions = { rpcUrl: 'https://rinkeby.arbitrum.io/rpc', chainId: 421611 } // Setting network to Arbitrum const magic = new Magic('YOUR_PUBLISHABLE_TEST_API_KEY', { network: customNodeOptions });

How to connect to Arbitrum L2 with Magic