Versions in this module Expand all Collapse all v0 v0.0.2 Dec 30, 2023 Changes in this version + const Instruction_AdvanceNonceAccount + const Instruction_Allocate + const Instruction_AllocateWithSeed + const Instruction_Assign + const Instruction_AssignWithSeed + const Instruction_AuthorizeNonceAccount + const Instruction_CreateAccount + const Instruction_CreateAccountWithSeed + const Instruction_InitializeNonceAccount + const Instruction_Transfer + const Instruction_TransferWithSeed + const Instruction_WithdrawNonceAccount + const ProgramName + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.Uint32TypeIDEncoding, []ag_binary.VariantType{ ... }) + var ProgramID ag_solanago.PublicKey = ag_solanago.SystemProgramID + func InstructionIDToName(id uint32) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type AdvanceNonceAccount struct + func NewAdvanceNonceAccountInstruction(nonceAccount ag_solanago.PublicKey, ...) *AdvanceNonceAccount + func NewAdvanceNonceAccountInstructionBuilder() *AdvanceNonceAccount + func (inst *AdvanceNonceAccount) EncodeToTree(parent ag_treeout.Branches) + func (inst *AdvanceNonceAccount) GetNonceAccount() *ag_solanago.AccountMeta + func (inst *AdvanceNonceAccount) GetNonceAuthorityAccount() *ag_solanago.AccountMeta + func (inst *AdvanceNonceAccount) GetSysVarRecentBlockHashesPubkeyAccount() *ag_solanago.AccountMeta + func (inst *AdvanceNonceAccount) SetNonceAccount(nonceAccount ag_solanago.PublicKey) *AdvanceNonceAccount + func (inst *AdvanceNonceAccount) SetNonceAuthorityAccount(nonceAuthorityAccount ag_solanago.PublicKey) *AdvanceNonceAccount + func (inst *AdvanceNonceAccount) SetSysVarRecentBlockHashesPubkeyAccount(SysVarRecentBlockHashesPubkey ag_solanago.PublicKey) *AdvanceNonceAccount + func (inst *AdvanceNonceAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *AdvanceNonceAccount) Validate() error + func (inst AdvanceNonceAccount) Build() *Instruction + func (inst AdvanceNonceAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst AdvanceNonceAccount) ValidateAndBuild() (*Instruction, error) + type Allocate struct + Space *uint64 + func NewAllocateInstruction(space uint64, newAccount ag_solanago.PublicKey) *Allocate + func NewAllocateInstructionBuilder() *Allocate + func (inst *Allocate) EncodeToTree(parent ag_treeout.Branches) + func (inst *Allocate) GetNewAccount() *ag_solanago.AccountMeta + func (inst *Allocate) SetNewAccount(newAccount ag_solanago.PublicKey) *Allocate + func (inst *Allocate) SetSpace(space uint64) *Allocate + func (inst *Allocate) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *Allocate) Validate() error + func (inst Allocate) Build() *Instruction + func (inst Allocate) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst Allocate) ValidateAndBuild() (*Instruction, error) + type AllocateWithSeed struct + Base *ag_solanago.PublicKey + Owner *ag_solanago.PublicKey + Seed *string + Space *uint64 + func NewAllocateWithSeedInstruction(base ag_solanago.PublicKey, seed string, space uint64, ...) *AllocateWithSeed + func NewAllocateWithSeedInstructionBuilder() *AllocateWithSeed + func (inst *AllocateWithSeed) EncodeToTree(parent ag_treeout.Branches) + func (inst *AllocateWithSeed) GetAllocatedAccount() *ag_solanago.AccountMeta + func (inst *AllocateWithSeed) GetBaseAccount() *ag_solanago.AccountMeta + func (inst *AllocateWithSeed) SetAllocatedAccount(allocatedAccount ag_solanago.PublicKey) *AllocateWithSeed + func (inst *AllocateWithSeed) SetBase(base ag_solanago.PublicKey) *AllocateWithSeed + func (inst *AllocateWithSeed) SetBaseAccount(baseAccount ag_solanago.PublicKey) *AllocateWithSeed + func (inst *AllocateWithSeed) SetOwner(owner ag_solanago.PublicKey) *AllocateWithSeed + func (inst *AllocateWithSeed) SetSeed(seed string) *AllocateWithSeed + func (inst *AllocateWithSeed) SetSpace(space uint64) *AllocateWithSeed + func (inst *AllocateWithSeed) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *AllocateWithSeed) Validate() error + func (inst AllocateWithSeed) Build() *Instruction + func (inst AllocateWithSeed) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst AllocateWithSeed) ValidateAndBuild() (*Instruction, error) + type Assign struct + Owner *ag_solanago.PublicKey + func NewAssignInstruction(owner ag_solanago.PublicKey, assignedAccount ag_solanago.PublicKey) *Assign + func NewAssignInstructionBuilder() *Assign + func (inst *Assign) EncodeToTree(parent ag_treeout.Branches) + func (inst *Assign) GetAssignedAccount() *ag_solanago.AccountMeta + func (inst *Assign) SetAssignedAccount(assignedAccount ag_solanago.PublicKey) *Assign + func (inst *Assign) SetOwner(owner ag_solanago.PublicKey) *Assign + func (inst *Assign) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *Assign) Validate() error + func (inst Assign) Build() *Instruction + func (inst Assign) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst Assign) ValidateAndBuild() (*Instruction, error) + type AssignWithSeed struct + Base *ag_solanago.PublicKey + Owner *ag_solanago.PublicKey + Seed *string + func NewAssignWithSeedInstruction(base ag_solanago.PublicKey, seed string, owner ag_solanago.PublicKey, ...) *AssignWithSeed + func NewAssignWithSeedInstructionBuilder() *AssignWithSeed + func (inst *AssignWithSeed) EncodeToTree(parent ag_treeout.Branches) + func (inst *AssignWithSeed) GetAssignedAccount() *ag_solanago.AccountMeta + func (inst *AssignWithSeed) GetBaseAccount() *ag_solanago.AccountMeta + func (inst *AssignWithSeed) SetAssignedAccount(assignedAccount ag_solanago.PublicKey) *AssignWithSeed + func (inst *AssignWithSeed) SetBase(base ag_solanago.PublicKey) *AssignWithSeed + func (inst *AssignWithSeed) SetBaseAccount(baseAccount ag_solanago.PublicKey) *AssignWithSeed + func (inst *AssignWithSeed) SetOwner(owner ag_solanago.PublicKey) *AssignWithSeed + func (inst *AssignWithSeed) SetSeed(seed string) *AssignWithSeed + func (inst *AssignWithSeed) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *AssignWithSeed) Validate() error + func (inst AssignWithSeed) Build() *Instruction + func (inst AssignWithSeed) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst AssignWithSeed) ValidateAndBuild() (*Instruction, error) + type AuthorizeNonceAccount struct + Authorized *ag_solanago.PublicKey + func NewAuthorizeNonceAccountInstruction(authorized ag_solanago.PublicKey, nonceAccount ag_solanago.PublicKey, ...) *AuthorizeNonceAccount + func NewAuthorizeNonceAccountInstructionBuilder() *AuthorizeNonceAccount + func (inst *AuthorizeNonceAccount) EncodeToTree(parent ag_treeout.Branches) + func (inst *AuthorizeNonceAccount) GetNonceAccount() *ag_solanago.AccountMeta + func (inst *AuthorizeNonceAccount) GetNonceAuthorityAccount() *ag_solanago.AccountMeta + func (inst *AuthorizeNonceAccount) SetAuthorized(authorized ag_solanago.PublicKey) *AuthorizeNonceAccount + func (inst *AuthorizeNonceAccount) SetNonceAccount(nonceAccount ag_solanago.PublicKey) *AuthorizeNonceAccount + func (inst *AuthorizeNonceAccount) SetNonceAuthorityAccount(nonceAuthorityAccount ag_solanago.PublicKey) *AuthorizeNonceAccount + func (inst *AuthorizeNonceAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *AuthorizeNonceAccount) Validate() error + func (inst AuthorizeNonceAccount) Build() *Instruction + func (inst AuthorizeNonceAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst AuthorizeNonceAccount) ValidateAndBuild() (*Instruction, error) + type CreateAccount struct + Lamports *uint64 + Owner *ag_solanago.PublicKey + Space *uint64 + func NewCreateAccountInstruction(lamports uint64, space uint64, owner ag_solanago.PublicKey, ...) *CreateAccount + func NewCreateAccountInstructionBuilder() *CreateAccount + func (inst *CreateAccount) EncodeToTree(parent ag_treeout.Branches) + func (inst *CreateAccount) GetFundingAccount() *ag_solanago.AccountMeta + func (inst *CreateAccount) GetNewAccount() *ag_solanago.AccountMeta + func (inst *CreateAccount) SetFundingAccount(fundingAccount ag_solanago.PublicKey) *CreateAccount + func (inst *CreateAccount) SetLamports(lamports uint64) *CreateAccount + func (inst *CreateAccount) SetNewAccount(newAccount ag_solanago.PublicKey) *CreateAccount + func (inst *CreateAccount) SetOwner(owner ag_solanago.PublicKey) *CreateAccount + func (inst *CreateAccount) SetSpace(space uint64) *CreateAccount + func (inst *CreateAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *CreateAccount) Validate() error + func (inst CreateAccount) Build() *Instruction + func (inst CreateAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst CreateAccount) ValidateAndBuild() (*Instruction, error) + type CreateAccountWithSeed struct + Base *ag_solanago.PublicKey + Lamports *uint64 + Owner *ag_solanago.PublicKey + Seed *string + Space *uint64 + func NewCreateAccountWithSeedInstruction(base ag_solanago.PublicKey, seed string, lamports uint64, space uint64, ...) *CreateAccountWithSeed + func NewCreateAccountWithSeedInstructionBuilder() *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) EncodeToTree(parent ag_treeout.Branches) + func (inst *CreateAccountWithSeed) GetBaseAccount() *ag_solanago.AccountMeta + func (inst *CreateAccountWithSeed) GetCreatedAccount() *ag_solanago.AccountMeta + func (inst *CreateAccountWithSeed) GetFundingAccount() *ag_solanago.AccountMeta + func (inst *CreateAccountWithSeed) SetBase(base ag_solanago.PublicKey) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetBaseAccount(baseAccount ag_solanago.PublicKey) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetCreatedAccount(createdAccount ag_solanago.PublicKey) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetFundingAccount(fundingAccount ag_solanago.PublicKey) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetLamports(lamports uint64) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetOwner(owner ag_solanago.PublicKey) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetSeed(seed string) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) SetSpace(space uint64) *CreateAccountWithSeed + func (inst *CreateAccountWithSeed) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *CreateAccountWithSeed) Validate() error + func (inst CreateAccountWithSeed) Build() *Instruction + func (inst CreateAccountWithSeed) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst CreateAccountWithSeed) ValidateAndBuild() (*Instruction, error) + type FeeCalculator struct + LamportsPerSignature uint64 + func (obj *FeeCalculator) UnmarshalWithDecoder(decoder *bin.Decoder) (err error) + func (obj FeeCalculator) MarshalWithEncoder(encoder *bin.Encoder) (err error) + type InitializeNonceAccount struct + Authorized *ag_solanago.PublicKey + func NewInitializeNonceAccountInstruction(authorized ag_solanago.PublicKey, nonceAccount ag_solanago.PublicKey, ...) *InitializeNonceAccount + func NewInitializeNonceAccountInstructionBuilder() *InitializeNonceAccount + func (inst *InitializeNonceAccount) EncodeToTree(parent ag_treeout.Branches) + func (inst *InitializeNonceAccount) GetNonceAccount() *ag_solanago.AccountMeta + func (inst *InitializeNonceAccount) GetSysVarRecentBlockHashesPubkeyAccount() *ag_solanago.AccountMeta + func (inst *InitializeNonceAccount) GetSysVarRentPubkeyAccount() *ag_solanago.AccountMeta + func (inst *InitializeNonceAccount) SetAuthorized(authorized ag_solanago.PublicKey) *InitializeNonceAccount + func (inst *InitializeNonceAccount) SetNonceAccount(nonceAccount ag_solanago.PublicKey) *InitializeNonceAccount + func (inst *InitializeNonceAccount) SetSysVarRecentBlockHashesPubkeyAccount(SysVarRecentBlockHashesPubkey ag_solanago.PublicKey) *InitializeNonceAccount + func (inst *InitializeNonceAccount) SetSysVarRentPubkeyAccount(SysVarRentPubkey ag_solanago.PublicKey) *InitializeNonceAccount + func (inst *InitializeNonceAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *InitializeNonceAccount) Validate() error + func (inst InitializeNonceAccount) Build() *Instruction + func (inst InitializeNonceAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst InitializeNonceAccount) ValidateAndBuild() (*Instruction, error) + type Instruction struct + func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error) + func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta) + func (inst *Instruction) Data() ([]byte, error) + func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches) + func (inst *Instruction) ProgramID() ag_solanago.PublicKey + func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error + func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error + type NonceAccount struct + AuthorizedPubkey solana.PublicKey + FeeCalculator FeeCalculator + Nonce solana.PublicKey + State uint32 + Version uint32 + func (obj *NonceAccount) UnmarshalWithDecoder(decoder *bin.Decoder) (err error) + func (obj NonceAccount) MarshalWithEncoder(encoder *bin.Encoder) (err error) + type Transfer struct + Lamports *uint64 + func NewTransferInstruction(lamports uint64, fundingAccount ag_solanago.PublicKey, ...) *Transfer + func NewTransferInstructionBuilder() *Transfer + func (inst *Transfer) EncodeToTree(parent ag_treeout.Branches) + func (inst *Transfer) GetFundingAccount() *ag_solanago.AccountMeta + func (inst *Transfer) GetRecipientAccount() *ag_solanago.AccountMeta + func (inst *Transfer) SetFundingAccount(fundingAccount ag_solanago.PublicKey) *Transfer + func (inst *Transfer) SetLamports(lamports uint64) *Transfer + func (inst *Transfer) SetRecipientAccount(recipientAccount ag_solanago.PublicKey) *Transfer + func (inst *Transfer) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *Transfer) Validate() error + func (inst Transfer) Build() *Instruction + func (inst Transfer) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst Transfer) ValidateAndBuild() (*Instruction, error) + type TransferWithSeed struct + FromOwner *ag_solanago.PublicKey + FromSeed *string + Lamports *uint64 + func NewTransferWithSeedInstruction(lamports uint64, from_seed string, from_owner ag_solanago.PublicKey, ...) *TransferWithSeed + func NewTransferWithSeedInstructionBuilder() *TransferWithSeed + func (inst *TransferWithSeed) EncodeToTree(parent ag_treeout.Branches) + func (inst *TransferWithSeed) GetBaseForFundingAccount() *ag_solanago.AccountMeta + func (inst *TransferWithSeed) GetFundingAccount() *ag_solanago.AccountMeta + func (inst *TransferWithSeed) GetRecipientAccount() *ag_solanago.AccountMeta + func (inst *TransferWithSeed) SetBaseForFundingAccount(baseForFundingAccount ag_solanago.PublicKey) *TransferWithSeed + func (inst *TransferWithSeed) SetFromOwner(from_owner ag_solanago.PublicKey) *TransferWithSeed + func (inst *TransferWithSeed) SetFromSeed(from_seed string) *TransferWithSeed + func (inst *TransferWithSeed) SetFundingAccount(fundingAccount ag_solanago.PublicKey) *TransferWithSeed + func (inst *TransferWithSeed) SetLamports(lamports uint64) *TransferWithSeed + func (inst *TransferWithSeed) SetRecipientAccount(recipientAccount ag_solanago.PublicKey) *TransferWithSeed + func (inst *TransferWithSeed) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *TransferWithSeed) Validate() error + func (inst TransferWithSeed) Build() *Instruction + func (inst TransferWithSeed) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst TransferWithSeed) ValidateAndBuild() (*Instruction, error) + type WithdrawNonceAccount struct + Lamports *uint64 + func NewWithdrawNonceAccountInstruction(lamports uint64, nonceAccount ag_solanago.PublicKey, ...) *WithdrawNonceAccount + func NewWithdrawNonceAccountInstructionBuilder() *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) EncodeToTree(parent ag_treeout.Branches) + func (inst *WithdrawNonceAccount) GetNonceAccount() *ag_solanago.AccountMeta + func (inst *WithdrawNonceAccount) GetNonceAuthorityAccount() *ag_solanago.AccountMeta + func (inst *WithdrawNonceAccount) GetRecipientAccount() *ag_solanago.AccountMeta + func (inst *WithdrawNonceAccount) GetSysVarRecentBlockHashesPubkeyAccount() *ag_solanago.AccountMeta + func (inst *WithdrawNonceAccount) GetSysVarRentPubkeyAccount() *ag_solanago.AccountMeta + func (inst *WithdrawNonceAccount) SetLamports(lamports uint64) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) SetNonceAccount(nonceAccount ag_solanago.PublicKey) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) SetNonceAuthorityAccount(nonceAuthorityAccount ag_solanago.PublicKey) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) SetRecipientAccount(recipientAccount ag_solanago.PublicKey) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) SetSysVarRecentBlockHashesPubkeyAccount(SysVarRecentBlockHashesPubkey ag_solanago.PublicKey) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) SetSysVarRentPubkeyAccount(SysVarRentPubkey ag_solanago.PublicKey) *WithdrawNonceAccount + func (inst *WithdrawNonceAccount) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst *WithdrawNonceAccount) Validate() error + func (inst WithdrawNonceAccount) Build() *Instruction + func (inst WithdrawNonceAccount) MarshalWithEncoder(encoder *ag_binary.Encoder) error + func (inst WithdrawNonceAccount) ValidateAndBuild() (*Instruction, error)