Solana
BlockchainSpider provides a spider to collect transaction data from the Solana blockchain.
Collect by Slot Number
To collect Solana blockchain data by slot number, use the following command:
scrapy crawl trans.block.solana \
-a providers=https://your.provider.solana \
-a start_slot=349485000 \
-a end_slot=349486000 \
-a out=/path/to/your/data
Another example to listen the latest transactions in Ethereum:
scrapy crawl trans.block.solana \
-a providers=https://your.provider.solana \
-a out=/path/to/your/data
Parameters:
providers
: The RPC provider URL for accessing the Solana. If you have multiple providers, separate them with commas. It is recommended that you get providers from blockchain data services, e.g., alchemy.start_slot
: (optional) The starting slot number for data collection. if not specified, the spider will start from the latest slot.end_slot
: (optional) The ending slot number for data collection. If not specified, the spider will continuously listen and parse the latest slot data.out
: (optional) The output directory for storing the collected data. The default is./data
.
💡 All collected data structures are defined in BlockchainSpider/items/solana.py. Refer to the corresponding code for detailed data structures.
Collect by transaction hash
To collect blockchain data by transaction hash, use the following command:
scrapy crawl trans.solana \
-a providers=https://your.provider.solana \
-a signature=3AL2h...Nts \
-a out=/path/to/your/data
Parameters:
providers
: The RPC providers URL for accessing the EVM-compatible blockchain. If you have multiple providers, join them with commas. It is recommended that you build your own blockchain nodes, or get providers from blockchain data services, e.g., alchemy, drpc, etc.signature
: The transaction signature for data collection. If you have multiple signatures, join them with commas.out
: (optional) The output directory for storing the collected data. The default is./data
.