MetaplexBubblegumProgram.createTree constructor
MetaplexBubblegumProgram.createTree({
- required SolAddress treeAuthority,
- required SolAddress merkleTree,
- required SolAddress payer,
- required SolAddress treeCreator,
- required SolAddress logWrapper,
- required SolAddress compressionProgram,
- required MetaplexBubblegumCreateTreeLayout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexBubblegumProgram.createTree({
required SolAddress treeAuthority,
required SolAddress merkleTree,
required SolAddress payer,
required SolAddress treeCreator,
required SolAddress logWrapper,
required SolAddress compressionProgram,
required MetaplexBubblegumCreateTreeLayout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexBubblegumProgram(keys: [
treeAuthority.toWritable(),
merkleTree.toWritable(),
payer.toSignerAndWritable(),
treeCreator.toSigner(),
logWrapper.toReadOnly(),
compressionProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexBubblegumProgramConst.programId, layout: layout);
}