Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-spl-governance
getCreateRealmInstruction
Function getCreateRealmInstruction
getCreateRealmInstruction
<
TAccountRealmAccount
extends
string
,
TAccountRealmAuthority
extends
string
,
TAccountCommunityTokenMint
extends
string
,
TAccountCommunityTokenHoldingAccount
extends
string
,
TAccountPayer
extends
string
,
TAccountSystemProgram
extends
string
,
TAccountTokenProgram
extends
string
,
TAccountRent
extends
string
,
TAccountCouncilTokenMint
extends
string
,
TAccountCouncilTokenHoldingAccount
extends
string
,
TAccountRealmConfig
extends
string
,
TAccountCommunityVoterWeightAddin
extends
string
,
TAccountMaxCommunityVoterWeightAddin
extends
string
,
TAccountCouncilVoterWeightAddin
extends
string
,
TAccountMaxCouncilVoterWeightAddin
extends
string
,
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
}
,
)
:
CreateRealmInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountRealmAuthority
,
TAccountCommunityTokenMint
,
TAccountCommunityTokenHoldingAccount
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountTokenProgram
,
TAccountRent
,
TAccountCouncilTokenMint
,
TAccountCouncilTokenHoldingAccount
,
TAccountRealmConfig
,
TAccountCommunityVoterWeightAddin
,
TAccountMaxCommunityVoterWeightAddin
,
TAccountCouncilVoterWeightAddin
,
TAccountMaxCouncilVoterWeightAddin
,
>
Type Parameters
TAccountRealmAccount
extends
string
TAccountRealmAuthority
extends
string
TAccountCommunityTokenMint
extends
string
TAccountCommunityTokenHoldingAccount
extends
string
TAccountPayer
extends
string
TAccountSystemProgram
extends
string
TAccountTokenProgram
extends
string
TAccountRent
extends
string
TAccountCouncilTokenMint
extends
string
TAccountCouncilTokenHoldingAccount
extends
string
TAccountRealmConfig
extends
string
TAccountCommunityVoterWeightAddin
extends
string
TAccountMaxCommunityVoterWeightAddin
extends
string
TAccountCouncilVoterWeightAddin
extends
string
TAccountMaxCouncilVoterWeightAddin
extends
string
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
}
Returns
CreateRealmInstruction
<
TProgramAddress
,
TAccountRealmAccount
,
TAccountRealmAuthority
,
TAccountCommunityTokenMint
,
TAccountCommunityTokenHoldingAccount
,
TAccountPayer
,
TAccountSystemProgram
,
TAccountTokenProgram
,
TAccountRent
,
TAccountCouncilTokenMint
,
TAccountCouncilTokenHoldingAccount
,
TAccountRealmConfig
,
TAccountCommunityVoterWeightAddin
,
TAccountMaxCommunityVoterWeightAddin
,
TAccountCouncilVoterWeightAddin
,
TAccountMaxCouncilVoterWeightAddin
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...