Versions in this module Expand all Collapse all v1 v1.0.1 Jun 26, 2024 Changes in this version + const MaxSigners + const MintAccountSize + const MultisigAccountSize + const TokenAccountSize + var ErrInvalidAccountDataSize = errors.New("invalid account data size") + var ErrInvalidAccountOwner = errors.New("invalid account owner") + var None = []byte + var Some = []byte + func Approve(param ApproveParam) types.Instruction + func ApproveChecked(param ApproveCheckedParam) types.Instruction + func Burn(param BurnParam) types.Instruction + func BurnChecked(param BurnCheckedParam) types.Instruction + func CloseAccount(param CloseAccountParam) types.Instruction + func FreezeAccount(param FreezeAccountParam) types.Instruction + func InitializeAccount(param InitializeAccountParam) types.Instruction + func InitializeAccount2(param InitializeAccount2Param) types.Instruction + func InitializeAccount3(param InitializeAccount3Param) types.Instruction + func InitializeMint(param InitializeMintParam) types.Instruction + func InitializeMint2(param InitializeMint2Param) types.Instruction + func InitializeMultisig(param InitializeMultisigParam) types.Instruction + func InitializeMultisig2(param InitializeMultisig2Param) types.Instruction + func MintTo(param MintToParam) types.Instruction + func MintToChecked(param MintToCheckedParam) types.Instruction + func Revoke(param RevokeParam) types.Instruction + func SetAuthority(param SetAuthorityParam) types.Instruction + func SyncNative(param SyncNativeParam) types.Instruction + func ThawAccount(param ThawAccountParam) types.Instruction + func Transfer(param TransferParam) types.Instruction + func TransferChecked(param TransferCheckedParam) types.Instruction + type ApproveCheckedParam struct + Amount uint64 + Auth common.PublicKey + Decimals uint8 + From common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type ApproveParam struct + Amount uint64 + Auth common.PublicKey + From common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type AuthorityType uint8 + const AuthorityTypeAccountOwner + const AuthorityTypeCloseAccount + const AuthorityTypeFreezeAccount + const AuthorityTypeMintTokens + type BurnCheckedParam struct + Account common.PublicKey + Amount uint64 + Auth common.PublicKey + Decimals uint8 + Mint common.PublicKey + Signers []common.PublicKey + type BurnParam struct + Account common.PublicKey + Amount uint64 + Auth common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + type CloseAccountParam struct + Account common.PublicKey + Auth common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type FreezeAccountParam struct + Account common.PublicKey + Auth common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + type InitializeAccount2Param struct + Account common.PublicKey + Mint common.PublicKey + Owner common.PublicKey + type InitializeAccount3Param struct + Account common.PublicKey + Mint common.PublicKey + Owner common.PublicKey + type InitializeAccountParam struct + Account common.PublicKey + Mint common.PublicKey + Owner common.PublicKey + type InitializeMint2Param struct + Decimals uint8 + FreezeAuth *common.PublicKey + Mint common.PublicKey + MintAuth common.PublicKey + type InitializeMintParam struct + Decimals uint8 + FreezeAuth *common.PublicKey + Mint common.PublicKey + MintAuth common.PublicKey + type InitializeMultisig2Param struct + Account common.PublicKey + MinRequired uint8 + Signers []common.PublicKey + type InitializeMultisigParam struct + Account common.PublicKey + MinRequired uint8 + Signers []common.PublicKey + type Instruction uint8 + const InstructionApprove + const InstructionApproveChecked + const InstructionBurn + const InstructionBurnChecked + const InstructionCloseAccount + const InstructionFreezeAccount + const InstructionInitializeAccount + const InstructionInitializeAccount2 + const InstructionInitializeAccount3 + const InstructionInitializeMint + const InstructionInitializeMint2 + const InstructionInitializeMultisig + const InstructionInitializeMultisig2 + const InstructionMintTo + const InstructionMintToChecked + const InstructionRevoke + const InstructionSetAuthority + const InstructionSyncNative + const InstructionThawAccount + const InstructionTransfer + const InstructionTransferChecked + type MintAccount struct + Decimals uint8 + FreezeAuthority *common.PublicKey + IsInitialized bool + MintAuthority *common.PublicKey + Supply uint64 + func MintAccountFromData(data []byte) (MintAccount, error) + type MintToCheckedParam struct + Amount uint64 + Auth common.PublicKey + Decimals uint8 + Mint common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type MintToParam struct + Amount uint64 + Auth common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type MultisigAccount struct + IsInitialized bool + M uint8 + N uint8 + Signers []common.PublicKey + func MultisigAccountFromData(data []byte) (MultisigAccount, error) + type RevokeParam struct + Auth common.PublicKey + From common.PublicKey + Signers []common.PublicKey + type SetAuthorityParam struct + Account common.PublicKey + Auth common.PublicKey + AuthType AuthorityType + NewAuth *common.PublicKey + Signers []common.PublicKey + type SyncNativeParam struct + Account common.PublicKey + type ThawAccountParam struct + Account common.PublicKey + Auth common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + type TokenAccount struct + Amount uint64 + CloseAuthority *common.PublicKey + Delegate *common.PublicKey + DelegatedAmount uint64 + IsNative *uint64 + Mint common.PublicKey + Owner common.PublicKey + State TokenAccountState + func DeserializeTokenAccount(data []byte, accountOwner common.PublicKey) (TokenAccount, error) + func TokenAccountFromData(data []byte) (TokenAccount, error) + type TokenAccountState uint8 + const TokenAccountFrozen + const TokenAccountStateInitialized + const TokenAccountStateUninitialized + type TransferCheckedParam struct + Amount uint64 + Auth common.PublicKey + Decimals uint8 + From common.PublicKey + Mint common.PublicKey + Signers []common.PublicKey + To common.PublicKey + type TransferParam struct + Amount uint64 + Auth common.PublicKey + From common.PublicKey + Signers []common.PublicKey + To common.PublicKey