Block: TableCodec<{
    header: FixedSizeCodec<{
        compact_target: number;
        dao: Uint8Array;
        epoch: bigint;
        extra_hash: Uint8Array;
        hash: Uint8Array;
        nonce: bigint;
        number: bigint;
        parent_hash: Uint8Array;
        proposals_hash: Uint8Array;
        timestamp: bigint;
        transactions_root: Uint8Array;
        version: number;
    }, HeaderParseInput>;
    proposals: FixvecCodec<FixedSizeCodec<Uint8Array, string | Uint8Array>>;
    transactions: DynvecCodec<DynamicSizeCodec<{
        cell_deps: InferShape<{
            dep_type: FixedSizeCodec<"code" | "dep_group", code | dep_group | "code" | "dep_group">;
            out_point: StructCodec<{
                index: FixedSizeCodec<number, string | number>;
                tx_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
            }>;
        }>[];
        hash: Uint8Array;
        header_deps: Uint8Array[];
        inputs: InferShape<{
            previous_output: StructCodec<{
                index: FixedSizeCodec<number, string | number>;
                tx_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
            }>;
            since: FixedSizeCodec<bigint, string | bigint>;
        }>[];
        outputs: InferShape<{
            capacity: FixedSizeCodec<bigint, string | bigint>;
            lock: TableCodec<{
                args: DynamicSizeCodec<Uint8Array, string | Uint8Array>;
                code_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
                hash_type: FixedSizeCodec<"data" | "type" | "data1" | "data2", "data" | data | type | data1 | data2 | "type" | "data1" | "data2">;
            }>;
            type: OptionCodec<TableCodec<{
                args: DynamicSizeCodec<Uint8Array, string | Uint8Array>;
                code_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
                hash_type: FixedSizeCodec<"data" | "type" | "data1" | "data2", "data" | data | type | data1 | data2 | "type" | "data1" | "data2">;
            }>>;
        }>[];
        outputs_data: Uint8Array[];
        version: number;
        witnesses: Uint8Array[];
    }, TransactionParseInput>>;
    uncles: DynvecCodec<TableCodec<{
        header: FixedSizeCodec<{
            compact_target: number;
            dao: Uint8Array;
            epoch: bigint;
            extra_hash: Uint8Array;
            hash: Uint8Array;
            nonce: bigint;
            number: bigint;
            parent_hash: Uint8Array;
            proposals_hash: Uint8Array;
            timestamp: bigint;
            transactions_root: Uint8Array;
            version: number;
        }, HeaderParseInput>;
        proposals: FixvecCodec<FixedSizeCodec<Uint8Array, string | Uint8Array>>;
    }>>;
}> = ...

Type declaration

  • header: FixedSizeCodec<{
        compact_target: number;
        dao: Uint8Array;
        epoch: bigint;
        extra_hash: Uint8Array;
        hash: Uint8Array;
        nonce: bigint;
        number: bigint;
        parent_hash: Uint8Array;
        proposals_hash: Uint8Array;
        timestamp: bigint;
        transactions_root: Uint8Array;
        version: number;
    }, HeaderParseInput>
  • proposals: FixvecCodec<FixedSizeCodec<Uint8Array, string | Uint8Array>>
  • transactions: DynvecCodec<DynamicSizeCodec<{
        cell_deps: InferShape<{
            dep_type: FixedSizeCodec<"code" | "dep_group", code | dep_group | "code" | "dep_group">;
            out_point: StructCodec<{
                index: FixedSizeCodec<number, string | number>;
                tx_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
            }>;
        }>[];
        hash: Uint8Array;
        header_deps: Uint8Array[];
        inputs: InferShape<{
            previous_output: StructCodec<{
                index: FixedSizeCodec<number, string | number>;
                tx_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
            }>;
            since: FixedSizeCodec<bigint, string | bigint>;
        }>[];
        outputs: InferShape<{
            capacity: FixedSizeCodec<bigint, string | bigint>;
            lock: TableCodec<{
                args: DynamicSizeCodec<Uint8Array, string | Uint8Array>;
                code_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
                hash_type: FixedSizeCodec<"data" | "type" | "data1" | "data2", "data" | data | type | data1 | data2 | "type" | "data1" | "data2">;
            }>;
            type: OptionCodec<TableCodec<{
                args: DynamicSizeCodec<Uint8Array, string | Uint8Array>;
                code_hash: FixedSizeCodec<Uint8Array, string | Uint8Array>;
                hash_type: FixedSizeCodec<"data" | "type" | "data1" | "data2", "data" | data | type | data1 | data2 | "type" | "data1" | "data2">;
            }>>;
        }>[];
        outputs_data: Uint8Array[];
        version: number;
        witnesses: Uint8Array[];
    }, TransactionParseInput>>
  • uncles: DynvecCodec<TableCodec<{
        header: FixedSizeCodec<{
            compact_target: number;
            dao: Uint8Array;
            epoch: bigint;
            extra_hash: Uint8Array;
            hash: Uint8Array;
            nonce: bigint;
            number: bigint;
            parent_hash: Uint8Array;
            proposals_hash: Uint8Array;
            timestamp: bigint;
            transactions_root: Uint8Array;
            version: number;
        }, HeaderParseInput>;
        proposals: FixvecCodec<FixedSizeCodec<Uint8Array, string | Uint8Array>>;
    }>>

Generated using TypeDoc