Connect Your Ecosystem

Your Game Chain is now a fully functional, independent EVM network.

  1. Update Your dApp: Reconfigure your game's frontend to point to your new Game Chain's public RPC URL.

  2. Add to Wallets: Provide a simple "Add Network" button in your dApp so players can easily add your Game Chain to their MetaMask.

JavaScript

await window.ethereum.request({
  method: 'wallet_addEthereumChain',
  params: [{
    chainId: '0x1A4', // Hex for 420
    chainName: 'Degen Arena',
    nativeCurrency: { name: 'ARENA', symbol: 'ARENA', decimals: 18 },
    rpcUrls: ['https://rpc.degen-arena.io'],
    blockExplorerUrls: ['https://explorer.degen-arena.io'], // Optional
  }],
});

Advanced Configuration

Gasless (Subsidized) Transactions

Since you control the execution environment, you can implement gasless transactions for your players. This is typically done by setting up a relayer that accepts meta-transactions, pays the gas fee on the player's behalf (in your custom feeToken), and submits the transaction to your sequencer.

Custom Precompiles

For performance-critical operations, you can fork our node software to add custom precompiles. This allows you to implement complex logic (e.g., specific cryptographic functions, complex state updates for your game) in a lower-level language like Go or Rust, which can be called directly from your Solidity smart contracts at a fraction of the gas cost.

Last updated