Coda by Ian Macalinao
Preparing search index...
@solana-programs/mpl-bubblegum
getDelegateV2InstructionAsync
Function getDelegateV2InstructionAsync
getDelegateV2InstructionAsync
<
TAccountTreeAuthority
extends
InstructionAccountInput
,
TAccountPayer
extends
InstructionSignerInput
,
TAccountLeafOwner
extends
InstructionSignerInput
,
TAccountPreviousLeafDelegate
extends
InstructionAccountInput
,
TAccountNewLeafDelegate
extends
InstructionAccountInput
,
TAccountMerkleTree
extends
InstructionAccountInput
,
TAccountLogWrapper
extends
InstructionAccountInput
,
TAccountCompressionProgram
extends
InstructionAccountInput
,
TAccountSystemProgram
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY"
>
,
>
(
input
:
DelegateV2AsyncInput
<
TAccountTreeAuthority
,
TAccountPayer
,
TAccountLeafOwner
,
TAccountPreviousLeafDelegate
,
TAccountNewLeafDelegate
,
TAccountMerkleTree
,
TAccountLogWrapper
,
TAccountCompressionProgram
,
TAccountSystemProgram
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
Promise
<
DelegateV2Instruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountTreeAuthority
,
InstructionAccountInputAddress
<
TAccountTreeAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountLeafOwner
,
InstructionAccountInputAddress
<
TAccountLeafOwner
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPreviousLeafDelegate
,
InstructionAccountInputAddress
<
TAccountPreviousLeafDelegate
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountNewLeafDelegate
,
InstructionAccountInputAddress
<
TAccountNewLeafDelegate
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMerkleTree
,
InstructionAccountInputAddress
<
TAccountMerkleTree
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountLogWrapper
,
InstructionAccountInputAddress
<
TAccountLogWrapper
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCompressionProgram
,
InstructionAccountInputAddress
<
TAccountCompressionProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
[
]
,
>
,
>
Sets (or clears) the delegate authority for a
LeafSchema
V2 leaf node.
Type Parameters
TAccountTreeAuthority
extends
InstructionAccountInput
TAccountPayer
extends
InstructionSignerInput
TAccountLeafOwner
extends
InstructionSignerInput
TAccountPreviousLeafDelegate
extends
InstructionAccountInput
TAccountNewLeafDelegate
extends
InstructionAccountInput
TAccountMerkleTree
extends
InstructionAccountInput
TAccountLogWrapper
extends
InstructionAccountInput
TAccountCompressionProgram
extends
InstructionAccountInput
TAccountSystemProgram
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY"
>
Parameters
input
:
DelegateV2AsyncInput
<
TAccountTreeAuthority
,
TAccountPayer
,
TAccountLeafOwner
,
TAccountPreviousLeafDelegate
,
TAccountNewLeafDelegate
,
TAccountMerkleTree
,
TAccountLogWrapper
,
TAccountCompressionProgram
,
TAccountSystemProgram
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
Promise
<
DelegateV2Instruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountTreeAuthority
,
InstructionAccountInputAddress
<
TAccountTreeAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountLeafOwner
,
InstructionAccountInputAddress
<
TAccountLeafOwner
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPreviousLeafDelegate
,
InstructionAccountInputAddress
<
TAccountPreviousLeafDelegate
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountNewLeafDelegate
,
InstructionAccountInputAddress
<
TAccountNewLeafDelegate
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountMerkleTree
,
InstructionAccountInputAddress
<
TAccountMerkleTree
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountLogWrapper
,
InstructionAccountInputAddress
<
TAccountLogWrapper
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountCompressionProgram
,
InstructionAccountInputAddress
<
TAccountCompressionProgram
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountSystemProgram
,
InstructionAccountInputAddress
<
TAccountSystemProgram
>
,
>
,
[
]
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...
Sets (or clears) the delegate authority for a
LeafSchemaV2 leaf node.