Inputs
All packages
Package ref
spl-token-events@v0.1.1Run package
- Start block
- latest 200 blocks
README
spl-token-substream
Stream SPL Token Program events with substreams.
Usage
- Setup the environment variable
STREAMINGFAST_KEYwith an API key. - Run
. ./token.sh - Start streaming with
make stream START=<slot>. You can verify the most recent slot on the Solana Explorer.
This substream provides a complete description of SPL Token Program events, as per spl_token.proto.
For storing these events in a database, a schema is provided along with a corresponding table_changes function. Find here an example of usage.
Modules