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, priority fees, token holders | go get github.com/Laminar-Bot/helius-go |
| birdeye-go | Birdeye prices, token security, token overview | go get github.com/Laminar-Bot/birdeye-go |
Note: For Jupiter swap execution, we recommend ilkamo/jupiter-go - a well-maintained community library.
| Library | Description | Install |
|---|---|---|
| solana-token-guard | Token safety screening - detect rugs, honeypots, concentrated holdings | go get github.com/Laminar-Bot/solana-token-guard |
import birdeye "github.com/Laminar-Bot/birdeye-go"
client, _ := birdeye.NewClient("your-api-key")
price, _ := client.GetPrice(ctx, "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263")
fmt.Printf("BONK: $%s\n", price.Value)import "github.com/ilkamo/jupiter-go"
client, _ := jupiter.NewClient(jupiter.DefaultConfig())
// Get quote: 1 SOL -> BONK
quote, _ := client.GetQuote(ctx, jupiter.GetQuoteParams{
InputMint: "So11111111111111111111111111111111111111112",
OutputMint: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
Amount: 1_000_000_000, // 1 SOL in lamports
SlippageBps: 100,
})
// Build and sign transaction...import "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 helius "github.com/Laminar-Bot/helius-go"
client, _ := helius.NewClient("your-api-key")
// Create webhook for wallet monitoring
webhook, _ := client.CreateWebhook(ctx, &helius.CreateWebhookRequest{
WebhookURL: "https://your-server.com/webhook",
AccountAddresses: []string{"WalletToWatch..."},
TransactionTypes: []string{"SWAP"},
WebhookType: helius.WebhookTypeEnhanced,
})Our libraries are designed to work together seamlessly:
┌─────────────────────────────────────────────────────────────┐
│ Your Application │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
│ │ helius-go │ │ birdeye-go │ │ solana-token-guard │ │
│ │ │ │ │ │ │ │
│ │ • RPC │ │ • Prices │ │ • Safety checks │ │
│ │ • Webhooks │ │ • Security │ │ • Rug detection │ │
│ │ • DAS API │ │ • Overview │ │ • Risk scoring │ │
│ │ • Holders │ │ │ │ │ │
│ └──────┬──────┘ └──────┬──────┘ └──────────┬──────────┘ │
│ │ │ │ │
│ └────────────────┴─────────────────────┘ │
│ │ │
│ ┌───────────┴───────────┐ │
│ │ ilkamo/jupiter-go │ │
│ │ (community library) │ │
│ │ • Quotes & Swaps │ │
│ └───────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────┐
│ Solana Network │
└─────────────────┘
| Feature | helius-go | birdeye-go | token-guard |
|---|---|---|---|
| Token Prices | ✅ | ||
| RPC Methods | ✅ | ||
| Webhooks | ✅ | ||
| Token Metadata | ✅ | ✅ | |
| Holder Analysis | ✅ | ✅ | |
| Token Security | ✅ | ✅ | |
| Priority Fees | ✅ | ||
| DAS API | ✅ |
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
