Coda by Ian Macalinao
Preparing search index...
@solana-programs/token-metadata
getCreateInstructionAsync
Function getCreateInstructionAsync
getCreateInstructionAsync
<
TAccountMetadata
extends
InstructionAccountInput
,
TAccountMasterEdition
extends
InstructionAccountInput
,
TAccountMint
extends
InstructionAccountInput
,
TAccountAuthority
extends
InstructionSignerInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountUpdateAuthority
extends
InstructionAccountInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountSysvarInstructions
extends
InstructionAccountInput
,
TAccountSplTokenProgram
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
>
,
>
(
input
:
CreateAsyncInput
<
TAccountMetadata
,
TAccountMasterEdition
,
TAccountMint
,
TAccountAuthority
,
TAccountPayer
,
TAccountUpdateAuthority
,
TAccountSystemProgram
,
TAccountSysvarInstructions
,
TAccountSplTokenProgram
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
Promise
<
CreateInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountMetadata
,
InstructionAccountInputAddress
<
TAccountMetadata
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMasterEdition
,
InstructionAccountInputAddress
<
TAccountMasterEdition
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMint
,
InstructionAccountInputAddress
<
TAccountMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountAuthority
,
InstructionAccountInputAddress
<
TAccountAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountUpdateAuthority
,
InstructionAccountInputAddress
<
TAccountUpdateAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSysvarInstructions
,
InstructionAccountInputAddress
<
TAccountSysvarInstructions
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSplTokenProgram
,
InstructionAccountInputAddress
<
TAccountSplTokenProgram
>
,
>
,
[
]
,
>
,
>
Type Parameters
TAccountMetadata
extends
InstructionAccountInput
TAccountMasterEdition
extends
InstructionAccountInput
TAccountMint
extends
InstructionAccountInput
TAccountAuthority
extends
InstructionSignerInput
TAccountPayer
extends
InstructionSignerInput
TAccountUpdateAuthority
extends
InstructionAccountInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountSysvarInstructions
extends
InstructionAccountInput
TAccountSplTokenProgram
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
>
Parameters
input
:
CreateAsyncInput
<
TAccountMetadata
,
TAccountMasterEdition
,
TAccountMint
,
TAccountAuthority
,
TAccountPayer
,
TAccountUpdateAuthority
,
TAccountSystemProgram
,
TAccountSysvarInstructions
,
TAccountSplTokenProgram
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
Promise
<
CreateInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountMetadata
,
InstructionAccountInputAddress
<
TAccountMetadata
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMasterEdition
,
InstructionAccountInputAddress
<
TAccountMasterEdition
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMint
,
InstructionAccountInputAddress
<
TAccountMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountAuthority
,
InstructionAccountInputAddress
<
TAccountAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountUpdateAuthority
,
InstructionAccountInputAddress
<
TAccountUpdateAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSysvarInstructions
,
InstructionAccountInputAddress
<
TAccountSysvarInstructions
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSplTokenProgram
,
InstructionAccountInputAddress
<
TAccountSplTokenProgram
>
,
>
,
[
]
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...