Substreams for Antelope

github crates.io docs.rs GitHub Workflow Status

This library contains the generated protobuffer for the Antelope blocks as well as helper methods to extract and parse block data.

📖 Documentation

https://docs.rs/substreams-antelope

Further resources

🛠 Feature Roadmap

Install

$ cargo add substreams-antelope

Quickstart

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};

[substreams::handlers::map]

fn mapactiontraces(block: Block) -> Result { let mut action_traces = vec![];

for trx in block.clone().all_transaction_traces() {
    for trace in trx.action_traces.clone() {
        action_traces.push(trace);
    }
}
Ok(ActionTraces { action_traces })

} ```