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

Common Variables

We use the same args across a few different methods. Here we define them

type BlockInfo struct {
    BlockId         string `json:"id"`
    Timestamp       int64 `json:"timestamp"`
    L1Head          uint64 `json:"l1_head"`
    Height          uint64  `json:"height"`
}


type BlockHeadersResponse struct {
    From   uint64      `json:"from"`
    Blocks []BlockInfo `json:"blocks"`
    Prev   BlockInfo   `json:"prev"`
    Next   BlockInfo   `json:"next"`
}
PreviousBundle APINextSubmitMsgTx

Last updated 10 months ago