diff --git a/ethrpc.go b/ethrpc.go index 52b05cb..49c53bc 100644 --- a/ethrpc.go +++ b/ethrpc.go @@ -583,6 +583,7 @@ func (rpc *EthRPC) BatchGetLogsByRange(from, to int) ([][]Log, error) { return batchedLogs, nil } +// BatchGetBlocksAndLogs returns blocks and logs for a range in order, fetched in a single batched call func (rpc *EthRPC) BatchGetBlocksAndLogs(numbers ...int) ([]*Block, [][]Log, error) { var blockRequests []ethRequest var logRequests []ethRequest