Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/predatordotbot/bundler-go-sdk

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/predatordotbot/bundler-go-sdk

  • v0.0.0-20240826150754-19af49bd8f79
  • Source
  • Go
  • Socket score

Version published
Created
Source

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")

	// Buy operation
	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 sell and create operations, see the examples in main.go
}

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.

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc