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