PredatorSDK
PredatorSDK is a Go client for interacting with the Predator API. It provides functionality for buying, selling, and creating tokens through bundles on Raydium, Pumpfun and Moonshot for the Solana blockchain.
Installation
To use PredatorSDK in your Go project, you can install it using go get
:
go get github.com/predatordotbot/predatorsdk/predatorsdk
Usage
Here's a basic example of how to use PredatorSDK:
package main
import (
"fmt"
"log"
"github.com/predatordotbot/predatorsdk/predatorsdk"
)
func main() {
sdk := predatorsdk.NewPredatorSDK("https://api.predator.bot")
buyResult, err := sdk.Buy(predatorsdk.BuySellOptions{
PrivateKeys: "privatekey1,privatekey2,privatekey3",
TokenAddress: "token_address",
Amount: "0.001",
})
if err != nil {
log.Fatalf("Buy operation failed: %v", err)
}
fmt.Printf("Buy successful: %v\n", buyResult)
}
For more detailed examples, please refer to the main.go
file in the examples repository.
Documentation
For full documentation of the SDK's functions and types, please refer to the comments in the source code.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.