InstructionSignerInput

type InstructionSignerInput<TAddress> = AccountSignerMeta<TAddress> | TransactionSigner<TAddress>;

Represents the accepted input values for a signer instruction account.

Namely, one of the following:

  • A TransactionSigner — the most common case.
  • An AccountSignerMeta — i.e. { address, role, signer } — to explicitly override the role derived from the program's IDL, e.g. to mark a signer account as writable or readonly.

Type Parameters

Type ParameterDefault typeDescription
TAddress extends stringstringSupply a string literal to define an account having a particular address.

See

InstructionAccountInput

On this page