πŸ”¬
SecureChain.AI
  • πŸ™Welcome to SecureChain.AI
  • Overview
    • 😞The Problem
    • πŸ’‘The Solution
    • πŸš€Vision
    • 🎯Mission
    • πŸ€–AI in SecureChain AI
  • Ecosystem
    • πŸ’ΌWallet
    • ♾️Mainnet Info
    • πŸ§ͺTestnet Info
    • πŸŒ‰Cross-chain Bridge
    • πŸ’»Dapps
    • πŸ›‘οΈSecurity Services
  • Developer Guide
    • πŸ› οΈResources
    • ⛓️Consensus
    • 🏹Genesis
    • πŸ“¦SC20 Standard
    • πŸ“Smart Contracts
  • Governance
    • πŸ™οΈSecureChain Foundation
    • πŸ“‹The Validators
    • πŸͺ™SCAI Tokenomics
    • πŸ§˜β€β™‚οΈIntegrity and Compliance
  • Roadmap
    • πŸ₯‡2023
    • πŸ₯ˆ2024
    • πŸ₯‰2025
  • Help
    • ❔FAQ
    • πŸ‘¨β€πŸ’ΌCommunity Chat
  • Legal
    • βš–οΈTerms of Service
    • πŸ”Privacy Policy
    • πŸ›οΈDisclaimers
Powered by GitBook
On this page
  1. Developer Guide

Genesis

PreviousConsensusNextSC20 Standard

Last updated 2 years ago

The genesis file defines the first block in the chain, and the first block defines the chain ID and other parameters of the blockchain.

SecureChain network is specified as a public network using the command line option.

The genesis file specifies the , such as those for a , so all nodes in a network must use the same genesis file.

{
  "config": {
    "chainId": 2018,
    "berlinBlock": 0,
    "ibft2": {
      "blockperiodseconds": 2,
      "epochlength": 30000,
      "requesttimeoutseconds": 4
    }
  },
  "nonce": "0x0",
  "timestamp": "0x58ee40ba",
  "extraData": "0xf83ea00000000000000000000000000000000000000000000000000000000000000000d5949811ebc35d7b06b3fa8dc5809a1f9c52751e1deb808400000000c0",
  "gasLimit": "0x1fffffffffffff",
  "difficulty": "0x1",
  "mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
  "coinbase": "0x0000000000000000000000000000000000000000",
  "alloc": {
    "9811ebc35d7b06b3fa8dc5809a1f9c52751e1deb": {
      "balance": "0xad78ebc5ac6200000"
    }
  }
}
🏹
--network
network-wide settings
free gas network