{"modulePath":"github.com/doesnotcommit/solana-go-sdk","version":"v1.23.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package system\n\n## Constants\n\n```go\nconst FeeCalculatorSize = 8\n```\n\n```go\nconst NonceAccountSize = 80\n```\n\n## Functions\n\n```go\nfunc AdvanceNonceAccount(param AdvanceNonceAccountParam) types.Instruction\n```\n\n```go\nfunc Allocate(param AllocateParam) types.Instruction\n```\n\n```go\nfunc AllocateWithSeed(param AllocateWithSeedParam) types.Instruction\n```\n\n```go\nfunc Assign(param AssignParam) types.Instruction\n```\n\n```go\nfunc AssignWithSeed(param AssignWithSeedParam) types.Instruction\n```\n\n```go\nfunc AuthorizeNonceAccount(param AuthorizeNonceAccountParam) types.Instruction\n```\n\n```go\nfunc CreateAccount(param CreateAccountParam) types.Instruction\n```\n\n```go\nfunc CreateAccountWithSeed(param CreateAccountWithSeedParam) types.Instruction\n```\n\n```go\nfunc InitializeNonceAccount(param InitializeNonceAccountParam) types.Instruction\n```\n\n```go\nfunc Transfer(param TransferParam) types.Instruction\n```\n\n```go\nfunc TransferWithSeed(param TransferWithSeedParam) types.Instruction\n```\n\n```go\nfunc UpgradeNonceAccount(param UpgradeNonceAccountParam) types.Instruction\n```\n\n```go\nfunc WithdrawNonceAccount(param WithdrawNonceAccountParam) types.Instruction\n```\n\n## Types\n\n```go\ntype AdvanceNonceAccountParam struct {\n\tNonce common.PublicKey\n\tAuth  common.PublicKey\n}\n```\n\n```go\ntype AllocateParam struct {\n\tAccount common.PublicKey\n\tSpace   uint64\n}\n```\n\n```go\ntype AllocateWithSeedParam struct {\n\tAccount common.PublicKey\n\tBase    common.PublicKey\n\tOwner   common.PublicKey\n\tSeed    string\n\tSpace   uint64\n}\n```\n\n```go\ntype AssignParam struct {\n\tFrom  common.PublicKey\n\tOwner common.PublicKey\n}\n```\n\n```go\ntype AssignWithSeedParam struct {\n\tAccount common.PublicKey\n\tOwner   common.PublicKey\n\tBase    common.PublicKey\n\tSeed    string\n}\n```\n\n```go\ntype AuthorizeNonceAccountParam struct {\n\tNonce   common.PublicKey\n\tAuth    common.PublicKey\n\tNewAuth common.PublicKey\n}\n```\n\n```go\ntype CreateAccountParam struct {\n\tFrom     common.PublicKey\n\tNew      common.PublicKey\n\tOwner    common.PublicKey\n\tLamports uint64\n\tSpace    uint64\n}\n```\n\n```go\ntype CreateAccountWithSeedParam struct {\n\tFrom     common.PublicKey\n\tNew      common.PublicKey\n\tBase     common.PublicKey\n\tOwner    common.PublicKey\n\tSeed     string\n\tLamports uint64\n\tSpace    uint64\n}\n```\n\n```go\ntype FeeCalculator struct {\n\tLamportsPerSignature uint64\n}\n```\n\n```go\nfunc FeeCalculatorDeserialize(data []byte) (FeeCalculator, error)\n```\n\n```go\ntype InitializeNonceAccountParam struct {\n\tNonce common.PublicKey\n\tAuth  common.PublicKey\n}\n```\n\n```go\ntype Instruction uint32\n```\n\n```go\nconst (\n\tInstructionCreateAccount Instruction = iota\n\tInstructionAssign\n\tInstructionTransfer\n\tInstructionCreateAccountWithSeed\n\tInstructionAdvanceNonceAccount\n\tInstructionWithdrawNonceAccount\n\tInstructionInitializeNonceAccount\n\tInstructionAuthorizeNonceAccount\n\tInstructionAllocate\n\tInstructionAllocateWithSeed\n\tInstructionAssignWithSeed\n\tInstructionTransferWithSeed\n\tInstructionUpgradeNonceAccount\n)\n```\n\n```go\ntype NonceAccount struct {\n\tVersion          uint32\n\tState            uint32\n\tAuthorizedPubkey common.PublicKey\n\tNonce            common.PublicKey\n\tFeeCalculator    FeeCalculator\n}\n```\n\n```go\nfunc NonceAccountDeserialize(data []byte) (NonceAccount, error)\n```\n\n```go\ntype TransferParam struct {\n\tFrom   common.PublicKey\n\tTo     common.PublicKey\n\tAmount uint64\n}\n```\n\n```go\ntype TransferWithSeedParam struct {\n\tFrom   common.PublicKey\n\tTo     common.PublicKey\n\tBase   common.PublicKey\n\tOwner  common.PublicKey\n\tSeed   string\n\tAmount uint64\n}\n```\n\n```go\ntype UpgradeNonceAccountParam struct {\n\tNonceAccountPubkey common.PublicKey\n}\n```\n\n```go\ntype WithdrawNonceAccountParam struct {\n\tNonce  common.PublicKey\n\tAuth   common.PublicKey\n\tTo     common.PublicKey\n\tAmount uint64\n}\n```\n\n","path":"github.com/doesnotcommit/solana-go-sdk/program/system","name":"system","synopsis":"","isRedistributable":true}
