Avalanche SDK Client
    Preparing search index...

    Type Alias XChainBlockType

    XChainBlockType: { block: { height: number; id: string; merkleRoot: string; parentID: string; time: number; txs: (...)[] }; encoding: "json" } | { block: string; encoding: "hex" }

    Represents an X-Chain block in either JSON or hex format. The X-Chain is Avalanche's native platform for creating and trading assets.

    Type declaration

    • { block: { height: number; id: string; merkleRoot: string; parentID: string; time: number; txs: (...)[] }; encoding: "json" }
      • block: { height: number; id: string; merkleRoot: string; parentID: string; time: number; txs: (...)[] }
        • height: number

          Height of the block in the chain

        • id: string

          ID of the block

        • merkleRoot: string

          Merkle root of all transactions in the block

        • parentID: string

          ID of the parent block

        • time: number

          Unix timestamp when the block was created

        • txs: (...)[]

          Array of transactions in the block

      • encoding: "json"

        Encoding format for the block data

    • { block: string; encoding: "hex" }
      • block: string

        Block data in hex format

      • encoding: "hex"

        Encoding format for the block data