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

Last updated