Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugMode bool
Functions ¶
Types ¶
type AccountKey ¶
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)
Click to show internal directories.
Click to hide internal directories.