getCommitmentBlocks

Retrieves the blocks for the NodeKit L1 Light Client program.

type GetBlockCommitmentArgs struct {
    First         uint64 `json:"first"`
    CurrentHeight uint64 `json:"current_height"`
    MaxBlocks     int    `json:"max_blocks"`
}

type SequencerWarpBlock struct {
    BlockId    string   `json:"id"`
    Timestamp  int64    `json:"timestamp"`
    L1Head     uint64   `json:"l1_head"`
    Height     *big.Int `json:"height"`
    BlockRoot  *big.Int `json:"root"`
    ParentRoot *big.Int `json:"parent"`
}

Response: type SequencerWarpBlockResponse struct {
    Blocks []SequencerWarpBlock `json:"blocks"`
}

Last updated