SPLTokenMetaDataProgram.removeField constructor

SPLTokenMetaDataProgram.removeField({
  1. required SPLTokenMetaDataRemoveFieldLayout layout,
  2. required SolAddress programId,
  3. required SolAddress metadata,
  4. required SolAddress updateAuthority,
})

Removes a key-value pair in a token-metadata account.

Implementation

factory SPLTokenMetaDataProgram.removeField({
  required SPLTokenMetaDataRemoveFieldLayout layout,
  required SolAddress programId,

  /// Metadata account
  required SolAddress metadata,

  /// Update authority
  required SolAddress updateAuthority,
}) {
  return SPLTokenMetaDataProgram(
      layout: layout,
      keys: [
        metadata.toWritable(),
        updateAuthority.toSigner(),
      ],
      programId: programId);
}