Coda by Ian Macalinao
Preparing search index...
@solana-programs/spl-governance
getCreateRealmInstruction
Function getCreateRealmInstruction
getCreateRealmInstruction
<
TAccountRealmAccount
extends
InstructionAccountInput
,
TAccountRealmAuthority
extends
InstructionAccountInput
,
TAccountCommunityTokenMint
extends
InstructionAccountInput
,
TAccountCommunityTokenHoldingAccount
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountTokenProgram
extends
InstructionAccountInput
,
TAccountRent
extends
InstructionAccountInput
,
TAccountCouncilTokenMint
extends
InstructionAccountInput
,
TAccountCouncilTokenHoldingAccount
extends
InstructionAccountInput
,
TAccountRealmConfig
extends
InstructionAccountInput
,
TAccountCommunityVoterWeightAddin
extends
InstructionAccountInput
,
TAccountMaxCommunityVoterWeightAddin
extends
InstructionAccountInput
,
TAccountCouncilVoterWeightAddin
extends
InstructionAccountInput
,
TAccountMaxCouncilVoterWeightAddin
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CreateRealmInput
<
TAccountRealmAccount
,
TAccountRealmAuthority
,
TAccountCommunityTokenMint
,
TAccountCommunityTokenHoldingAccount
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountTokenProgram
,
TAccountRent
,
TAccountCouncilTokenMint
,
TAccountCouncilTokenHoldingAccount
,
TAccountRealmConfig
,
TAccountCommunityVoterWeightAddin
,
TAccountMaxCommunityVoterWeightAddin
,
TAccountCouncilVoterWeightAddin
,
TAccountMaxCouncilVoterWeightAddin
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
CreateRealmInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmAuthority
,
InstructionAccountInputAddress
<
TAccountRealmAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityTokenMint
,
InstructionAccountInputAddress
<
TAccountCommunityTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityTokenHoldingAccount
,
InstructionAccountInputAddress
<
TAccountCommunityTokenHoldingAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRent
,
InstructionAccountInputAddress
<
TAccountRent
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilTokenMint
,
InstructionAccountInputAddress
<
TAccountCouncilTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilTokenHoldingAccount
,
InstructionAccountInputAddress
<
TAccountCouncilTokenHoldingAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfig
,
InstructionAccountInputAddress
<
TAccountRealmConfig
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountCommunityVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxCommunityVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountMaxCommunityVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountCouncilVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxCouncilVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountMaxCouncilVoterWeightAddin
>
,
>
,
>
Type Parameters
TAccountRealmAccount
extends
InstructionAccountInput
TAccountRealmAuthority
extends
InstructionAccountInput
TAccountCommunityTokenMint
extends
InstructionAccountInput
TAccountCommunityTokenHoldingAccount
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountTokenProgram
extends
InstructionAccountInput
TAccountRent
extends
InstructionAccountInput
TAccountCouncilTokenMint
extends
InstructionAccountInput
TAccountCouncilTokenHoldingAccount
extends
InstructionAccountInput
TAccountRealmConfig
extends
InstructionAccountInput
TAccountCommunityVoterWeightAddin
extends
InstructionAccountInput
TAccountMaxCommunityVoterWeightAddin
extends
InstructionAccountInput
TAccountCouncilVoterWeightAddin
extends
InstructionAccountInput
TAccountMaxCouncilVoterWeightAddin
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CreateRealmInput
<
TAccountRealmAccount
,
TAccountRealmAuthority
,
TAccountCommunityTokenMint
,
TAccountCommunityTokenHoldingAccount
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountTokenProgram
,
TAccountRent
,
TAccountCouncilTokenMint
,
TAccountCouncilTokenHoldingAccount
,
TAccountRealmConfig
,
TAccountCommunityVoterWeightAddin
,
TAccountMaxCommunityVoterWeightAddin
,
TAccountCouncilVoterWeightAddin
,
TAccountMaxCouncilVoterWeightAddin
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
CreateRealmInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmAuthority
,
InstructionAccountInputAddress
<
TAccountRealmAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityTokenMint
,
InstructionAccountInputAddress
<
TAccountCommunityTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityTokenHoldingAccount
,
InstructionAccountInputAddress
<
TAccountCommunityTokenHoldingAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRent
,
InstructionAccountInputAddress
<
TAccountRent
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilTokenMint
,
InstructionAccountInputAddress
<
TAccountCouncilTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilTokenHoldingAccount
,
InstructionAccountInputAddress
<
TAccountCouncilTokenHoldingAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRealmConfig
,
InstructionAccountInputAddress
<
TAccountRealmConfig
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCommunityVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountCommunityVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxCommunityVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountMaxCommunityVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCouncilVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountCouncilVoterWeightAddin
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMaxCouncilVoterWeightAddin
,
InstructionAccountInputAddress
<
TAccountMaxCouncilVoterWeightAddin
>
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...