Coda by Ian Macalinao
Preparing search index...
@solana-programs/spl-governance
getCreateTokenOwnerRecordInstructionAsync
Function getCreateTokenOwnerRecordInstructionAsync
getCreateTokenOwnerRecordInstructionAsync
<
TAccountRealmAccount
extends
InstructionAccountInput
,
TAccountGoverningTokenOwnerAccount
extends
InstructionAccountInput
,
TAccountTokenOwnerRecord
extends
InstructionAccountInput
,
TAccountGoverningTokenMint
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
,
>
(
input
:
CreateTokenOwnerRecordAsyncInput
<
TAccountRealmAccount
,
TAccountGoverningTokenOwnerAccount
,
TAccountTokenOwnerRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
Promise
<
CreateTokenOwnerRecordInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenOwnerAccount
,
InstructionAccountInputAddress
<
TAccountGoverningTokenOwnerAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
[
]
,
>
,
>
Type Parameters
TAccountRealmAccount
extends
InstructionAccountInput
TAccountGoverningTokenOwnerAccount
extends
InstructionAccountInput
TAccountTokenOwnerRecord
extends
InstructionAccountInput
TAccountGoverningTokenMint
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountSystemProgram
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
>
Parameters
input
:
CreateTokenOwnerRecordAsyncInput
<
TAccountRealmAccount
,
TAccountGoverningTokenOwnerAccount
,
TAccountTokenOwnerRecord
,
TAccountGoverningTokenMint
,
TAccountPayer
,
TAccountSystemProgram
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
Promise
<
CreateTokenOwnerRecordInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountRealmAccount
,
InstructionAccountInputAddress
<
TAccountRealmAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenOwnerAccount
,
InstructionAccountInputAddress
<
TAccountGoverningTokenOwnerAccount
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenOwnerRecord
,
InstructionAccountInputAddress
<
TAccountTokenOwnerRecord
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountGoverningTokenMint
,
InstructionAccountInputAddress
<
TAccountGoverningTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
[
]
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...