utils

package
v1.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BloxrouteTipAddress is from here and may fall out of date from time to time. Check our docs:
	// https://docs.bloxroute.com/solana/trader-api-v2/front-running-protection-and-transaction-bundle
	BloxrouteTipAddress = "HWEoBxYs7ssKuudEjzjmpfJVX7Dvi7wescFsVx2L5yoY"
)

Variables

This section is empty.

Functions

func CreateBloxrouteTipTransactionToUseBundles added in v1.9.3

func CreateBloxrouteTipTransactionToUseBundles(privateKey solana.PrivateKey, tipAmount uint64, recentBlockHash solana.Hash) (*solana.Transaction, error)

CreateBloxrouteTipTransactionToUseBundles creates a transaction you can use to when using PostSubmitBundle endpoints. This transaction should be the LAST transaction in your submission bundle

func InitLogger

func InitLogger()

Types

type RequestID

type RequestID struct {
	// contains filtered or unexported fields
}

func NewRequestID

func NewRequestID() *RequestID

func (*RequestID) Current

func (r *RequestID) Current() uint64

func (*RequestID) Next

func (r *RequestID) Next() uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL