Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRawTransaction ¶
func CreateRawTransaction(param CreateRawTransactionParam) ([]byte, error)
Types ¶
type Account ¶
type Account struct { PublicKey common.PublicKey PrivateKey ed25519.PrivateKey }
func NewAccount ¶
func NewAccount() Account
type AccountMeta ¶
type CompiledInstruction ¶
type CreateRawTransactionParam ¶
type CreateRawTransactionParam struct { Instructions []Instruction Signers []Account FeePayer common.PublicKey RecentBlockHash string }
type Instruction ¶
type Instruction struct { ProgramID common.PublicKey Accounts []AccountMeta //accounts programs will use Data []byte //instruct + params }
type Message ¶
type Message struct { Header MessageHeader Accounts []common.PublicKey RecentBlockHash string Instructions []CompiledInstruction }
func MessageDeserialize ¶
func MustMessageDeserialize ¶
func NewMessage ¶
func NewMessage(feePayer common.PublicKey, instructions []Instruction, recentBlockHash string) Message
func (*Message) DecompileInstructions ¶
func (m *Message) DecompileInstructions() []Instruction
type MessageHeader ¶
type Transaction ¶
func CreateTransaction ¶
func MustTransactionDeserialize ¶
func MustTransactionDeserialize(data []byte) Transaction
func TransactionDeserialize ¶
func TransactionDeserialize(tx []byte) (Transaction, error)
func (*Transaction) Serialize ¶
func (tx *Transaction) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.