Substreams for Antelope
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
- Antelope blocks
- Block helper methods
- all_transaction_traces
- executed_transaction_traces
- transaction_traces_count
- executed_input_action_count
- executed_total_action_count
- actions()
Install
$ cargo add substreams-antelope
Quickstart
Cargo.toml
[]
= "0.5"
= "0.2"
src/lib.rs
use *;
use Error;
use ;
Or, using actions() filter to filter all actions of Statelog type from myaccount account:
src/lib.rs
Using Abigen
To generate ABI bindings for your smart contract you can add abi/contract.abi.json file containing the smart contract ABI, as well as the following build.rs file to the root of your project. This will ensure that src/abi/contract.rs module containing Rust bindings for your smart contract is always generated in your project:
build.rs