Quickstart
Get up and running with the SWquery SDK in no time! This section will guide you through the basic setup and demonstrate how to perform your first wallet query.
Prerequisites
Before starting, ensure you have the following:
Rust Toolchain installed (Install Rust).
A Solana Wallet Address to query transactions.
Access to the SWquery SDK repository or package.
Step 1: Install the SDK
To add the SWquery SDK to your Rust project, include it as a dependency in your Cargo.toml
file:
Step 2: Initialize the SDK
In your Rust project, import and initialize the SDK:
Step 3: Perform Your First Query
The SWquery SDK uses natural language prompts to query on-chain data. Here's an example of querying transactions over 10 SOL:
Replace "YourWalletAddressHere"
with your actual Solana wallet address.
Step 4: Visualize the Results
The SDK provides structured JSON responses that can be easily integrated into front-end visualizations. Here's a sample output:
Next Steps
Now that you've successfully set up and queried your first wallet:
Explore the Core Features to unlock advanced functionality.
Dive into Code Examples for real-world use cases.
Integrate the SDK into your projects and enhance your blockchain applications.
Last updated