SPLTokenProgram.initializeImmutableOwner constructor

SPLTokenProgram.initializeImmutableOwner({
  1. required SolAddress account,
  2. required SolAddress programId,
})

Initialize the Immutable Owner extension for the given token account

Implementation

factory SPLTokenProgram.initializeImmutableOwner(
    {
    /// The account to initialize.
    required SolAddress account,
    required SolAddress programId}) {
  return SPLTokenProgram(
      layout: SPLTokenInitializeImmutableOwnerLayout(),
      keys: [account.toWritable()],
      programId: programId);
}