Files
2024-01-23 16:22:11 -05:00

76 lines
2.2 KiB
YAML

specVersion: v0.1.0
package:
name: "solana_explorer"
version: v0.2.0
url: https://github.com/streamingfast/substreams-explorers/
image: ./solana.png
doc: |
This packages holds simple modules to allow you to explore the Solana data model.
network: solana
imports:
solana: https://github.com/streamingfast/firehose-solana/releases/download/v0.1.1/solana-v0.1.1.spkg
protobuf:
files:
- block.proto
- transactions.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
modules:
- name: map_block_full
kind: map
inputs:
- source: sf.solana.type.v1.Block
output:
type: proto:sf.solana.type.v1.Block
doc: |
`map_block_full` allows you to view a complete block, as received by a Substreams module
- name: map_block_without_votes
kind: map
inputs:
- source: sf.solana.type.v1.Block
output:
type: proto:sf.solana.type.v1.Block
- name: map_block_meta
kind: map
inputs:
- source: sf.solana.type.v1.Block
output:
type: proto:sol.block.v1.BlockMeta
doc: |
`map_block_meta` allows you to view a basic information about a block
- name: map_filter_instructions
kind: map
inputs:
- params: string
- source: sf.solana.type.v1.Block
output:
type: proto:sol.transactions.v1.Instructions
doc: |
`map_filter_instructions` allows you to get instructions executed by a certain `program_id`, and returns the raw Instruction data model.
- name: map_filter_transactions
kind: map
inputs:
- params: string
- source: sf.solana.type.v1.Block
output:
type: proto:sol.transactions.v1.Transactions
doc: |
`map_filter_transaction` allows you to find a transaction by hash. You need to scope your search to the blocks you know you are going to find that transaction. Check with your preferred block explorer first.
params:
map_filter_instructions: "program_id=Stake11111111111111111111111111111111111111"
map_filter_transactions: "signature=21ED2HBGuLUwgbaBb77cGwFR8MkVQfjR9KszzCb7jZkeSysJkHAVew6RaaBh3r1zTefpdq9Kf5geFp19P3nUXB3t"