Substreams
for AntelopeThis library contains the generated protobuffer for the Antelope blocks as well as helper methods to extract and parse block data.
$ cargo add substreams-antelope
Cargo.toml
toml
[dependencies]
substreams = "0.5"
substreams-antelope = "0.1"
src/lib.rs
```rust use substreams::prelude::*; use substreams::errors::Error; use substreams_antelope::{Block, ActionTraces};
fn mapactiontraces(block: Block) -> Result
for trx in block.clone().all_transaction_traces() {
for trace in trx.action_traces.clone() {
action_traces.push(trace);
}
}
Ok(ActionTraces { action_traces })
} ```