Define Your Game Chain Configuration

The first step is to create a configuration file that defines the unique properties of your Game Chain. This is typically a genesis.json or a similar configuration file that our node software will ingest.

Create a file named my-game-chain-config.json:

JSON

{
  "chainName": "Degen Arena",
  "chainId": 420,
  "sequencerAddress": "0xYourSequencerWalletAddress",
  "adminAddress": "0xYourAdminWalletAddress",
  "feeToken": {
    "symbol": "ARENA",
    "address": "0xYourGameTokenContractAddress",
    "decimals": 18
  },
  "initialAlloc": {
    "0xPlayerOneAddress": "1000000000000000000000",
    "0xPlayerTwoAddress": "500000000000000000000"
  },
  "l1ContractBridge": "0xL1ChainDeploymentManagerAddressOnWSC"
}

Configuration Parameters:

  • chainName: The public name of your Game Chain.

  • chainId: A unique integer for your chain. You must register this on the Wall Street Chain developer portal to ensure it doesn't conflict with another Game Chain.

  • sequencerAddress: The public address of the wallet that your sequencer node will use to post transaction batches to the L1.

  • adminAddress: The address that has administrative rights over the chain, such as the ability to upgrade the sequencer.

  • feeToken: An object defining the token used for gas fees. To use $WSC, set the address to 0x0000000000000000000000000000000000000000. Otherwise, specify your game's native ERC-20 token address.

  • initialAlloc: The genesis allocation. You can pre-fund wallets with your native gas token at launch.

  • l1ContractBridge: The static address of the Wall Street Chain L1's deployment manager contract.

Last updated