Crates.io | sol_indexly |
lib.rs | sol_indexly |
version | 0.1.2 |
source | src |
created_at | 2024-10-26 19:43:05.354811 |
updated_at | 2024-10-26 21:18:36.106411 |
description | A lightweight CLI indexer for the Solana blockchain. |
homepage | https://github.com/Solindexly/solindexly.git |
repository | https://github.com/Solindexly/solindexly.git |
max_upload_size | |
id | 1424063 |
size | 137,945 |
solIndexly is a lightweight command-line interface (CLI) tool designed for efficient indexing and retrieving data from the Solana blockchain. This tool helps developers easily access program accounts and other relevant data, making it an essential utility for Solana-based applications.
To install solIndexly, you need to have Rust and Cargo installed on your machine. If you haven't installed them yet, follow the instructions here.
Once Rust and Cargo are installed, run the following command:
cargo install solIndexly
sol_indexly --rpc-url <RPC_URL> --program-id <PROGRAM_ID>
sol_indexly --rpc-url https://api.mainnet-beta.solana.com --program-id 4Nd1m1eeEwGC1QFi7dZerzyi3LAa1JxpCFdDnJEL6ZjD
sol_indexly --rpc-url https://api.devnet.solana.com --program-id A5JxZVHgXe7fn5TqJXm6Hj2zKh1ptDapae2YjtXbZJoy
sol_indexly --rpc-url <RPC_URL> --program-id <PROGRAM_ID>
sol_indexly --rpc-url <RPC_URL> --program-id <PROGRAM_ID> --output
--rpc-url The URL of the Solana RPC endpoint
--program-id Program ID to fetch accounts from
--output (Optional) Filename to save JSON output
[
{
"account_pubkey": "2Utt8kPL2eSfezk4CZmHwh7DiEz1FyH8bWfp6A3xstC7",
"account_data": {
"lamports": 2039280,
"owner": "4Nd1m1eeEwGC1QFi7dZerzyi3LAa1JxpCFdDnJEL6ZjD",
"executable": false,
"rent_epoch": 192
}
}
]
The solIndexly CLI connects to the specified Solana RPC endpoint and retrieves all accounts associated with a given Program ID. It formats the data and displays it in the console or saves it as a JSON file.
git clone https://github.com/SOLindexer/solIndexly/tree/main
cd solIndexly
cargo build
run locally
cargo run -- --rpc-url <RPC_URL> --program-id <PROGRAM_ID>
This project is licensed under the MIT License.