Package Logo
tron_foundational
tron_foundational@v0.1.2
Total Downloads
37
Published
2 weeks ago
Publisher
StreamingFast

Readme

TRON Foundational Modules

The TRON Foundational Modules Substreams contains a set of modules that allow you to easily retrieve basic information from the TRON blockchain.

Modules

map_transactions

This module retrieves all the NOT failed transactions, without any more filtering.

filtered_transactions

This module uses the index_transactions cache to match the filtered transactions based on the parameters passed as input to the module.

You can directly use this module to retrieve filtered transactions:

modules:
    - name: my_module
      use: tron_common:filtered_transactions

params:
    my_module: source_account:account1

index_transactions

This module creates a cache of transactions based on:

  • The contract type of every transactions.
  • The contract address of every transactions.
  • The owner address of every transactions that support it.
  • The to address of every transactions that suppoirt it

You can use this module as a blockFilter to filter transactions based on the parameters specified above. Here's an example to filter all the USDT (TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t) transfers from TMAP4Dnyh2og7bzW6HxZfuZqRSTHsVDKRT:

  - name: my_module
    ...
    blockFilter:
      module: index_transactions
      query:
        string: (contract_type:TriggerSmartContract && contract_address:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t && from:TMAP4Dnyh2og7bzW6HxZfuZqRSTHsVDKRT)

Documentation

Modules

Maps icon
Maps

map
map_transactions

91cc70e0afca9443e1cb1e9d2992b314ee0a8307
map map_transactions (
clocksf.substreams.v1.Clock
)  -> sf.substreams.tron.v1.Transactions
substreams gui tron-foundational@v0.1.2 map_transactions

map
filtered_transactions

3c991395e1a48558a3dacd120a806db9ae8e385f
Default param : contract_type:TransferContract
substreams gui tron-foundational@v0.1.2 filtered_transactions
Block Indexes icon
Block Indexes

blockIndex
index_transactions

0d656029f6b91e8a5611b920343d17181f15606c
substreams gui tron-foundational@v0.1.2 index_transactions
Protobuf

Protobuf Docs Explorer

sf.tron.type.v1
pb
protocol