MetaplexBubblegumProgram.transfer constructor
MetaplexBubblegumProgram.transfer({
- required SolAddress treeAuthority,
- required SolAddress leafOwner,
- required SolAddress leafDelegate,
- required SolAddress newLeafOwner,
- required SolAddress merkleTree,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required MetaplexBubblegumTransferLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- List<
AccountMeta> anchorRemainingAccounts = const [],
Implementation
factory MetaplexBubblegumProgram.transfer({
required SolAddress treeAuthority,
required SolAddress leafOwner,
required SolAddress leafDelegate,
required SolAddress newLeafOwner,
required SolAddress merkleTree,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required MetaplexBubblegumTransferLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
List<AccountMeta> anchorRemainingAccounts = const [],
}) {
return MetaplexBubblegumProgram(keys: [
treeAuthority.toReadOnly(),
leafOwner.toReadOnly(),
leafDelegate.toReadOnly(),
newLeafOwner.toReadOnly(),
merkleTree.toWritable(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}