SPLTokenMetaDataProgram.emit constructor

SPLTokenMetaDataProgram.emit({
  1. required SPLTokenMetaDataEmitLayout layout,
  2. required SolAddress programId,
  3. required SolAddress metadata,
})

Emits the token-metadata as return data

Implementation

factory SPLTokenMetaDataProgram.emit({
  required SPLTokenMetaDataEmitLayout layout,
  required SolAddress programId,

  /// Metadata account
  required SolAddress metadata,
}) {
  return SPLTokenMetaDataProgram(
      layout: layout, keys: [metadata.toReadOnly()], programId: programId);
}