Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Batches ¶
func Batches(client *ethclient.Client, beacon *sources.L1BeaconClient, config Config) (totalValid, totalInvalid uint64)
Batches fetches & stores all transactions sent to the batch inbox address in the given block range (inclusive to exclusive). The transactions & metadata are written to the out directory.
Types ¶
type TransactionWithMetadata ¶
type TransactionWithMetadata struct { TxIndex uint64 `json:"tx_index"` InboxAddr common.Address `json:"inbox_address"` BlockNumber uint64 `json:"block_number"` BlockHash common.Hash `json:"block_hash"` BlockTime uint64 `json:"block_time"` ChainId uint64 `json:"chain_id"` Sender common.Address `json:"sender"` ValidSender bool `json:"valid_sender"` Frames []derive.Frame `json:"frames"` FrameErrs []string `json:"frame_parse_error"` ValidFrames []bool `json:"valid_data"` Tx *types.Transaction `json:"tx"` }
Click to show internal directories.
Click to hide internal directories.