Coda by Ian Macalinao
Preparing search index...
@solana-programs/spl-governance
getCreateProposalInstruction
Function getCreateProposalInstruction
getCreateProposalInstruction
<
TAccountRealmAccount
extends
InstructionAccountInput
,
TAccountProposalAccount
extends
InstructionAccountInput
,
TAccountGovernanceAccount
extends
InstructionAccountInput
,
TAccountTokenOwnerRecord
extends
InstructionAccountInput
,
TAccountGoverningTokenMint
extends
InstructionAccountInput
,
TAccountGovernanceAuthority
extends
InstructionSignerInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountRealmConfig
extends
InstructionAccountInput
,
TAccountVoterWeightRecord
extends
InstructionAccountInput
,
TAccountProposalDepositAccount
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CreateProposalInput
<
TAccountRealmAccount
,
TAccountProposalAccount
,
TAccountGovernanceAccount
,
TAccountTokenOwnerRecord
,
TAccountGoverningTokenMint
,
TAccountGovernanceAuthority
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
TAccountProposalDepositAccount
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
CreateProposalInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalAccount
,
InstructionAccountInputAddress
<
TAccountProposalAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAuthority
,
InstructionAccountInputAddress
<
TAccountGovernanceAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfig
,
InstructionAccountInputAddress
<
TAccountRealmConfig
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountVoterWeightRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalDepositAccount
,
InstructionAccountInputAddress
<
TAccountProposalDepositAccount
>
,
>
,
>
Type Parameters
TAccountRealmAccount
extends
InstructionAccountInput
TAccountProposalAccount
extends
InstructionAccountInput
TAccountGovernanceAccount
extends
InstructionAccountInput
TAccountTokenOwnerRecord
extends
InstructionAccountInput
TAccountGoverningTokenMint
extends
InstructionAccountInput
TAccountGovernanceAuthority
extends
InstructionSignerInput
TAccountPayer
extends
InstructionSignerInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountRealmConfig
extends
InstructionAccountInput
TAccountVoterWeightRecord
extends
InstructionAccountInput
TAccountProposalDepositAccount
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CreateProposalInput
<
TAccountRealmAccount
,
TAccountProposalAccount
,
TAccountGovernanceAccount
,
TAccountTokenOwnerRecord
,
TAccountGoverningTokenMint
,
TAccountGovernanceAuthority
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
TAccountProposalDepositAccount
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
CreateProposalInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalAccount
,
InstructionAccountInputAddress
<
TAccountProposalAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAuthority
,
InstructionAccountInputAddress
<
TAccountGovernanceAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfig
,
InstructionAccountInputAddress
<
TAccountRealmConfig
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountVoterWeightRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountProposalDepositAccount
,
InstructionAccountInputAddress
<
TAccountProposalDepositAccount
>
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...