txstatus

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode bool

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if the library was build with the necessary flags to enable the FFI features necessary for parsing instructions.

Types

type AccountKey

type AccountKey struct {
	Pubkey   string `json:"pubkey"`
	Signer   bool   `json:"signer"`
	Source   string `json:"source"`
	Writable bool   `json:"writable"`
}

type AccountKeys

type AccountKeys struct {
	StaticKeys  []solana.PublicKey
	DynamicKeys *LoadedAddresses
}

func (AccountKeys) MarshalWithEncoder

func (inst AccountKeys) MarshalWithEncoder(encoder *bin.Encoder) error

type CompiledInstruction

type CompiledInstruction struct {
	ProgramIDIndex uint8
	Accounts       solana.Uint8SliceAsNum
	Data           []byte
}

func (CompiledInstruction) MarshalWithEncoder

func (inst CompiledInstruction) MarshalWithEncoder(encoder *bin.Encoder) error

type LoadedAddresses

type LoadedAddresses struct {
	Writable []solana.PublicKey
	Readonly []solana.PublicKey
}

func (LoadedAddresses) MarshalWithEncoder

func (inst LoadedAddresses) MarshalWithEncoder(encoder *bin.Encoder) error

type Message

type Message struct {
	AccountKeys     []AccountKey      `json:"accountKeys"`
	Instructions    []json.RawMessage `json:"instructions"`
	RecentBlockhash string            `json:"recentBlockhash"`
}

type Parameters

type Parameters struct {
	ProgramID   solana.PublicKey
	Instruction CompiledInstruction
	AccountKeys AccountKeys
	StackHeight *uint32
}

func (Parameters) MarshalWithEncoder

func (inst Parameters) MarshalWithEncoder(encoder *bin.Encoder) error

func (Parameters) ParseInstruction

func (inst Parameters) ParseInstruction() (json.RawMessage, error)

type Transaction

type Transaction struct {
	Message    Message            `json:"message"`
	Signatures []solana.Signature `json:"signatures"`
}

func FromTransaction

func FromTransaction(solTx solana.Transaction) (Transaction, error)

Jump to

Keyboard shortcuts

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