Avalanche · Schema

EvmGenesisDto

BlockchainWeb3AvalancheNFTDeFiCross-Chain

Properties

Name Type Description
airdropAmount numbernull Airdrop amount
airdropHash string Airdrop hash
alloc object Allocation of accounts and balances
baseFeePerGas numbernull Base fee per gas
blobGasUsed stringnull Blob gas used
coinbase string Coinbase address
config object Genesis configuration
difficulty string Difficulty
excessBlobGas stringnull Excess blob gas
extraData string Extra data
gasLimit string Gas limit
gasUsed string Gas used
mixHash string Mix hash
nonce string Nonce
number string Block number
parentHash string Parent hash
timestamp string Block timestamp
View JSON Schema on GitHub

JSON Schema

EvmGenesisDto.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/EvmGenesisDto.json",
  "title": "EvmGenesisDto",
  "type": "object",
  "properties": {
    "airdropAmount": {
      "type": [
        "number",
        "null"
      ],
      "description": "Airdrop amount",
      "example": null
    },
    "airdropHash": {
      "type": "string",
      "description": "Airdrop hash",
      "example": "0x0000000000000000000000000000000000000000000000000000000000000000"
    },
    "alloc": {
      "type": "object",
      "description": "Allocation of accounts and balances",
      "additionalProperties": {
        "$ref": "#/components/schemas/EvmGenesisAllocDto"
      },
      "example": {
        "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": {
          "balance": "0x52b7d2dcc80cd2e4000000",
          "code": "0x6080604052...",
          "storage": {
            "0x0": "0x1"
          }
        }
      }
    },
    "baseFeePerGas": {
      "type": [
        "number",
        "null"
      ],
      "description": "Base fee per gas",
      "example": null
    },
    "blobGasUsed": {
      "type": [
        "string",
        "null"
      ],
      "description": "Blob gas used",
      "example": null
    },
    "coinbase": {
      "type": "string",
      "description": "Coinbase address",
      "example": "0x0000000000000000000000000000000000000000"
    },
    "config": {
      "description": "Genesis configuration",
      "allOf": [
        {
          "$ref": "#/components/schemas/EvmGenesisConfigDto"
        }
      ]
    },
    "difficulty": {
      "type": "string",
      "description": "Difficulty",
      "example": "0x0"
    },
    "excessBlobGas": {
      "type": [
        "string",
        "null"
      ],
      "description": "Excess blob gas",
      "example": null
    },
    "extraData": {
      "type": "string",
      "description": "Extra data",
      "example": "0x"
    },
    "gasLimit": {
      "type": "string",
      "description": "Gas limit",
      "example": "0xb71b00"
    },
    "gasUsed": {
      "type": "string",
      "description": "Gas used",
      "example": "0x0"
    },
    "mixHash": {
      "type": "string",
      "description": "Mix hash",
      "example": "0x0000000000000000000000000000000000000000000000000000000000000000"
    },
    "nonce": {
      "type": "string",
      "description": "Nonce",
      "example": "0x0"
    },
    "number": {
      "type": "string",
      "description": "Block number",
      "example": "0x0"
    },
    "parentHash": {
      "type": "string",
      "description": "Parent hash",
      "example": "0x0000000000000000000000000000000000000000000000000000000000000000"
    },
    "timestamp": {
      "type": "string",
      "description": "Block timestamp",
      "example": "0x64f0a000"
    }
  }
}