Coda by Ian Macalinao
Preparing search index...
@solana-programs/quarry
getCreateMinerV2InstructionAsync
Function getCreateMinerV2InstructionAsync
getCreateMinerV2InstructionAsync
<
TAccountAuthority
extends
InstructionSignerInput
,
TAccountMiner
extends
InstructionAccountInput
,
TAccountQuarry
extends
InstructionAccountInput
,
TAccountRewarder
extends
InstructionAccountInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountTokenMint
extends
InstructionAccountInput
,
TAccountMinerVault
extends
InstructionAccountInput
,
TAccountTokenProgram
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB"
>
,
>
(
input
:
CreateMinerV2AsyncInput
<
TAccountAuthority
,
TAccountMiner
,
TAccountQuarry
,
TAccountRewarder
,
TAccountSystemProgram
,
TAccountPayer
,
TAccountTokenMint
,
TAccountMinerVault
,
TAccountTokenProgram
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
Promise
<
CreateMinerV2Instruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountAuthority
,
InstructionAccountInputAddress
<
TAccountAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMiner
,
InstructionAccountInputAddress
<
TAccountMiner
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountQuarry
,
InstructionAccountInputAddress
<
TAccountQuarry
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewarder
,
InstructionAccountInputAddress
<
TAccountRewarder
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenMint
,
InstructionAccountInputAddress
<
TAccountTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMinerVault
,
InstructionAccountInputAddress
<
TAccountMinerVault
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
[
]
,
>
,
>
Type Parameters
TAccountAuthority
extends
InstructionSignerInput
TAccountMiner
extends
InstructionAccountInput
TAccountQuarry
extends
InstructionAccountInput
TAccountRewarder
extends
InstructionAccountInput
TAccountSystemProgram
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountTokenMint
extends
InstructionAccountInput
TAccountMinerVault
extends
InstructionAccountInput
TAccountTokenProgram
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB"
>
Parameters
input
:
CreateMinerV2AsyncInput
<
TAccountAuthority
,
TAccountMiner
,
TAccountQuarry
,
TAccountRewarder
,
TAccountSystemProgram
,
TAccountPayer
,
TAccountTokenMint
,
TAccountMinerVault
,
TAccountTokenProgram
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
Promise
<
CreateMinerV2Instruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountAuthority
,
InstructionAccountInputAddress
<
TAccountAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMiner
,
InstructionAccountInputAddress
<
TAccountMiner
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountQuarry
,
InstructionAccountInputAddress
<
TAccountQuarry
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewarder
,
InstructionAccountInputAddress
<
TAccountRewarder
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenMint
,
InstructionAccountInputAddress
<
TAccountTokenMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMinerVault
,
InstructionAccountInputAddress
<
TAccountMinerVault
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
[
]
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...