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