Coda by Ian Macalinao
Preparing search index...
@solana-programs/spl-governance
getCreateMintGovernanceInstruction
Function getCreateMintGovernanceInstruction
getCreateMintGovernanceInstruction
<
TAccountRealmAccount
extends
InstructionAccountInput
,
TAccountMintGovernanceAccount
extends
InstructionAccountInput
,
TAccountGovernedMint
extends
InstructionAccountInput
,
TAccountMintAuthority
extends
InstructionSignerInput
,
TAccountGoverningTokenOwnerRecord
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountTokenProgram
extends
InstructionAccountInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountGovernanceAuthority
extends
InstructionSignerInput
,
TAccountRealmConfig
extends
InstructionAccountInput
,
TAccountVoterWeightRecord
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CreateMintGovernanceInput
<
TAccountRealmAccount
,
TAccountMintGovernanceAccount
,
TAccountGovernedMint
,
TAccountMintAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountTokenProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
CreateMintGovernanceInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMintGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountMintGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernedMint
,
InstructionAccountInputAddress
<
TAccountGovernedMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMintAuthority
,
InstructionAccountInputAddress
<
TAccountMintAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountGoverningTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernanceAuthority
,
InstructionAccountInputAddress
<
TAccountGovernanceAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfig
,
InstructionAccountInputAddress
<
TAccountRealmConfig
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountVoterWeightRecord
,
InstructionAccountInputAddress
<
TAccountVoterWeightRecord
>
,
>
,
>
Type Parameters
TAccountRealmAccount
extends
InstructionAccountInput
TAccountMintGovernanceAccount
extends
InstructionAccountInput
TAccountGovernedMint
extends
InstructionAccountInput
TAccountMintAuthority
extends
InstructionSignerInput
TAccountGoverningTokenOwnerRecord
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountTokenProgram
extends
InstructionAccountInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountGovernanceAuthority
extends
InstructionSignerInput
TAccountRealmConfig
extends
InstructionAccountInput
TAccountVoterWeightRecord
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CreateMintGovernanceInput
<
TAccountRealmAccount
,
TAccountMintGovernanceAccount
,
TAccountGovernedMint
,
TAccountMintAuthority
,
TAccountGoverningTokenOwnerRecord
,
TAccountPayer
,
TAccountTokenProgram
,
TAccountSystemProgram
,
TAccountGovernanceAuthority
,
TAccountRealmConfig
,
TAccountVoterWeightRecord
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
CreateMintGovernanceInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMintGovernanceAccount
,
InstructionAccountInputAddress
<
TAccountMintGovernanceAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGovernedMint
,
InstructionAccountInputAddress
<
TAccountGovernedMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMintAuthority
,
InstructionAccountInputAddress
<
TAccountMintAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountGoverningTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
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...