NodeKit Documentation
  • Learn
    • Welcome
  • Core Advantages
    • Composability
    • Revenue
    • Benefits
  • Architecture
    • Overview
    • Javelin
    • L1
    • Sidecar
      • Technical Overview
    • Shared Auction
  • Builders Guide
    • Javelin
      • Bundle API
  • JSON RPC Methods
    • Common Variables
    • SubmitMsgTx
    • getBlockHeadersByHeight
    • getBlockHeadersId
    • getBlockHeadersByStart
    • getBlockTransactions
    • getCommitmentBlocks
    • getBlockTransactionsByNamespace
  • Technical Documentation
  • Social
    • Twitter
    • Telegram
    • Discord
Powered by GitBook
On this page
  1. JSON RPC Methods

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"`
}
PreviousgetBlockTransactionsNextgetBlockTransactionsByNamespace

Last updated 10 months ago