Versions in this module Expand all Collapse all v3 v3.6.2 Feb 8, 2023 Changes in this version + const AdvanceNonceAccountTypeID + const AllocateTypeID + const AllocateWithSeedTypeID + const AssignTypeID + const AssignWithSeedTypeID + const AuthorizeNonceAccountTypeID + const CreateAccountTypeID + const CreateAccountWithSeedTypeID + const InitializeNonceAccountTypeID + const TransferTypeID + const WithdrawNonceAccountTypeID + var InstructionImplDef = bin.NewVariantDefinition(bin.Uint32TypeIDEncoding, []bin.VariantType{ ... }) + var MemoProgramID = types.MustPublicKeyFromBase58("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr") + var MemoProgramIDV2 = types.MustPublicKeyFromBase58("Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo") + var SystemProgramID = types.MustPublicKeyFromBase58("11111111111111111111111111111111") + var SysvarC1ockProgramID = types.MustPublicKeyFromBase58("SysvarC1ock11111111111111111111111111111111") + var SysvarRecentBlockhashesPubkey = types.MustPublicKeyFromBase58("SysvarRecentB1ockHashes11111111111111111111") + var SysvarRentProgramID = types.MustPublicKeyFromBase58("SysvarRent111111111111111111111111111111111") + type AdvanceNonceAccounts struct + AuthorizedPubkey *types.AccountMeta + BlockHash *types.AccountMeta + NoncePubkey *types.AccountMeta + type Allocate struct + Space bin.Uint64 + type AllocateWithSeed struct + Base types.PublicKey + Owner types.PublicKey + Seed types.BorshString + Space bin.Uint64 + type Assign struct + Owner types.PublicKey + type AssignWithSeed struct + Base types.PublicKey + Owner types.PublicKey + Seed types.BorshString + type AuthorizeNonceAccount struct + AuthorizeAccount types.PublicKey + type CreateAccount struct + Accounts *CreateAccountAccounts + Lamports bin.Uint64 + Owner types.PublicKey + Space bin.Uint64 + func (i *CreateAccount) SetAccounts(accounts []*types.AccountMeta) error + type CreateAccountAccounts struct + From *types.AccountMeta + New *types.AccountMeta + type CreateAccountWithSeed struct + Base types.PublicKey + Lamports bin.Uint64 + Owner types.PublicKey + Seed types.BorshString + Space bin.Uint64 + type InitializeNonceAccount struct + AuthorizedAccount types.PublicKey + type Instruction struct + func DecodeInstruction(accounts []*types.AccountMeta, data []byte) (*Instruction, error) + func NewCreateAccountInstruction(lamports uint64, space uint64, owner, from, to types.PublicKey) *Instruction + func NewNonceAdvanceInstruction(noncePubkey, authorizedPubkey types.PublicKey) *Instruction + func NewTransferSolanaInstruction(from, to types.PublicKey, lamports uint64) *Instruction + func (i *Instruction) Accounts() (out []*types.AccountMeta) + func (i *Instruction) Data() ([]byte, error) + func (i *Instruction) MarshalBinary(encoder *bin.Encoder) error + func (i *Instruction) ProgramID() types.PublicKey + func (i *Instruction) UnmarshalBinary(decoder *bin.Decoder) error + type NonceAccount struct + Accounts *AdvanceNonceAccounts + type Transfer struct + Accounts *TransferAccounts + Lamports bin.Uint64 + func (i *Transfer) SetAccounts(accounts []*types.AccountMeta) error + type TransferAccounts struct + From *types.AccountMeta + To *types.AccountMeta + type WithdrawNonceAccount struct + Lamports bin.Uint64