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