Package Logo
stellar_foundational
stellar-foundational@v0.3.0
Total Downloads
5
Published
2 weeks ago
Publisher
User Avatar streamingfast

Readme

Stellar Foundational Modules

The Stellar Foundational Modules Substreams contains a set of modules that allow you to easily retrieve basic information from the Stellar blockchain, such as transactions or operations.

Modules

map_transactions

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

index_transactions

This module creates a cache of transactions based on:

  • The source account of the transaction.
  • The source accounts of every operation contained within the transaction.

You can use this module as a blockFilter to filter transactions based on the parameters specified above:

  - name: my_module
    ...
    blockFilter:
      module: index_transactions
      query:
        string: (source_account:source_account1 || source_account:source_account2)

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: stellar_common:filtered_transactions

params:
    my_module: source_account:account1

map_operations

This module decodes some of the Stellar operations. These are the operation supported:

&Op::CreateAccount(_) => "create_account",
&Op::AccountMerge(_) => "account_merge",
&Op::Payment(_) => "payment",
&Op::CreateClaimableBalance(_) => "create_claimable_balance",
&Op::ClaimClaimableBalance(_) => "claim_claimable_balance",
&Op::Clawback(_) => "clawback",
&Op::ClawbackClaimableBalance(_) => "clawback_claimable_balance",
&Op::AllowTrust(_) => "allow_trust",
&Op::SetTrustLineFlags(_) => "set_trust_line_flags",
&Op::LiquidityPoolDeposit(_) => "liquidity_pool_deposit",
&Op::LiquidityPoolWithdraw(_) => "liquidity_pool_withdraw",
&Op::ManageBuyOffer(_) => "manage_buy_offer",
&Op::ManageSellOffer(_) => "manage_sell_offer",
&Op::CreatePassiveSellOffer(_) => "create_passive_sell_offer",
&Op::PathPaymentStrictSend(_) => "path_payment_strict_send",
&Op::PathPaymentStrictReceive(_) => "path_payment_strict_receive",

index_operations

This module creates a cache of operations, which you can use to filter by the operation name.

You can use this module as a blockFilter to filter operations:

  - name: my_module
    ...
    blockFilter:
      module: index_operations
      query:
        string: (operation:payment || operation:create_account)

filtered_operations

This module uses the index_operations cache to do the actual filtering of the operations.

You can directly use this module to retrieve filtered operations:

modules:
    - name: my_module
      use: stellar_common:filtered_operations

params:
    my_module: (operation:payment || operation:create_account)

Documentation

Modules

Maps icon
Maps

map
map_transactions

f06f0879c84cd3809d417af8c0c962ca7f68943f
map map_transactions (
blocksf.stellar.type.v1.Block
)  -> sf.substreams.stellar.type.v1.Transactions
substreams gui stellar-foundational@v0.3.0 map_transactions

map
filtered_transactions

95a1383c80d4b28076e77b195cb06bf57f8e9d90
Default param : source_account:GBTLMZIRRAYXQNT6AXGU7XVTWIOE7NES2AG2CGTPJPWRZMUWHEYAGFSC
substreams gui stellar-foundational@v0.3.0 filtered_transactions

map
map_operations

3969006b098d3ede02a0ceeca88b0209bb27f426
substreams gui stellar-foundational@v0.3.0 map_operations

map
filtered_operations

fa87d1dd705af5b93d4b627d8fff2d7ce77422d9
Default param : operation:liquidity_pool_deposit || operation:create_account
substreams gui stellar-foundational@v0.3.0 filtered_operations
Block Indexes icon
Block Indexes

blockIndex
index_transactions

c26b079421facfa4d4df11c6815b4a36e1a7fb9d
substreams gui stellar-foundational@v0.3.0 index_transactions

blockIndex
index_operations

66d32b014acf00003bce3e79ba75367a1736d10c
substreams gui stellar-foundational@v0.3.0 index_operations
Protobuf

Protobuf Docs Explorer

sf.stellar.type.v1
pb