Open-source tooling for Solana DeFi
We're building infrastructure for safe, automated trading on Solana. Our open-source libraries power DeFi applications, trading bots, and analytics platforms.
Production-ready Go clients for Solana's core DeFi infrastructure:
| Library | Description | Install |
|---|---|---|
| helius-go | Helius RPC, webhooks, DAS API, enhanced transactions | go get github.com/Laminar-Bot/helius-go |
| jupiter-go | Jupiter swap quotes, transactions, price API | go get github.com/Laminar-Bot/jupiter-go |
| birdeye-go | Birdeye prices, analytics, wallet tracking, OHLCV | go get github.com/Laminar-Bot/birdeye-go |
| Library | Description | Install |
|---|---|---|
| solana-token-guard | Token safety screening - detect rugs, honeypots, concentrated holdings | go get github.com/Laminar-Bot/solana-token-guard |
import "github.com/Laminar-Bot/jupiter-go"
client := jupiter.NewClient(jupiter.DefaultConfig())
price, _ := client.GetPrice(ctx, "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263")
fmt.Printf("BONK: $%s\n", price.Price)import "github.com/Laminar-Bot/jupiter-go"
client := jupiter.NewClient(jupiter.DefaultConfig())
// Get quote: 1 SOL -> BONK
quote, _ := client.GetQuote(ctx, &jupiter.QuoteRequest{
InputMint: jupiter.NativeSOL,
OutputMint: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
Amount: jupiter.SOLToLamports(decimal.NewFromInt(1)),
SlippageBps: 100,
})
// Build transaction
swap, _ := client.GetSwapTransaction(ctx, &jupiter.SwapRequest{
QuoteResponse: quote,
UserPublicKey: "YourWallet...",
})
// Sign and send swap.SwapTransactionimport "github.com/Laminar-Bot/solana-token-guard"
guard := tokenguard.New(tokenguard.Config{
Helius: heliusClient,
Birdeye: birdeyeClient,
})
result, _ := guard.Screen(ctx, "TokenMint...", tokenguard.LevelNormal)
if result.Passed {
fmt.Printf("✅ Safe (score: %d/100)\n", result.Score)
} else {
fmt.Printf("❌ Failed: %v\n", result.FailedChecks)
}import "github.com/Laminar-Bot/helius-go"
client := helius.NewClient(helius.Config{APIKey: "..."})
// Create webhook for wallet monitoring
webhook, _ := client.CreateWebhook(ctx, &helius.CreateWebhookRequest{
WebhookURL: "https://your-server.com/webhook",
AccountAddresses: []string{"WalletToWatch..."},
TransactionTypes: []string{"SWAP"},
WebhookType: "enhanced",
})Our libraries are designed to work together seamlessly:
┌─────────────────────────────────────────────────────────────┐
│ Your Application │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
│ │ jupiter-go │ │ helius-go │ │ solana-token-guard │ │
│ │ │ │ │ │ │ │
│ │ • Quotes │ │ • RPC │ │ • Safety checks │ │
│ │ • Swaps │ │ • Webhooks │ │ • Rug detection │ │
│ │ • Prices │ │ • DAS API │ │ • Risk scoring │ │
│ └──────┬──────┘ └──────┬──────┘ └──────────┬──────────┘ │
│ │ │ │ │
│ └────────────────┼─────────────────────┘ │
│ │ │
│ ┌──────┴──────┐ │
│ │ birdeye-go │ │
│ │ │ │
│ │ • Prices │ │
│ │ • Analytics │ │
│ │ • Wallets │ │
│ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────┐
│ Solana Network │
└─────────────────┘
| Feature | helius-go | jupiter-go | birdeye-go | token-guard |
|---|---|---|---|---|
| Token Prices | ✅ | ✅ | ||
| Swap Execution | ✅ | |||
| RPC Methods | ✅ | |||
| Webhooks | ✅ | |||
| Token Metadata | ✅ | ✅ | ||
| Wallet Tracking | ✅ | |||
| Holder Analysis | ✅ | ✅ | ✅ | |
| Liquidity Data | ✅ | ✅ | ||
| Security Checks | ✅ | |||
| OHLCV Charts | ✅ |
All libraries follow security best practices:
- No credential storage - API keys passed at initialization only
- Input validation - All inputs sanitized
- Error handling - No sensitive data in error messages
- Dependency auditing - Regular
go mod audit
Found a security issue? Email security@laminar.bot
We welcome contributions! Each repository has its own contributing guide:
- Fork the repository
- Create a feature branch
- Write tests for your changes
- Submit a pull request
Please read our Code of Conduct before contributing.
All open-source repositories are released under the MIT License.
- Discord - discord.gg/laminar - Chat with the team and community
- Twitter - @laminarbot - Updates and announcements
- GitHub Discussions - Ask questions and share ideas
Using our libraries? Let us know! Open a PR to add your project here.
Built with ☕ for the Solana ecosystem
