Overview

Cronos is a Layer 2 solution enhancing Ethereum by providing developers with faster and more cost-efficient transactions. As Cronos is EVM compatible, you can follow the Ethereum documentation to send your first transaction and utilize all other wallet features.

Configure Cronos

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

Mainnet

Mainnet Block Explorer: https://cronoscan.com/
JavaScript
const customNodeOptions = {
  rpcUrl: "https://evm.cronos.org/", // Cronos mainnet URL
  chainId: 25, // Your own node's chainId
};

// Setting network to Cronos
const magic = new Magic("YOUR_PUBLISHABLE_API_KEY", {
  network: customNodeOptions,
});

Testnet

Testnet Block Explorer: https://testnet.cronoscan.com/
JavaScript
const customNodeOptions = {
  rpcUrl: 'https://evm-t3.cronos.org/', // Cronos testnet URL
  chainId: 338, // Cronos testnet chainId
}

// Setting network to Cronos
const magic = new Magic('YOUR_PUBLISHABLE_API_KEY', { network: customNodeOptions });

Compatibility

  • All Auth, User and most Wallet module methods*
  • All EVM Provider functionality to respond to supported RPC methods
*Some Widget UI 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