InstructionAccountInput

type InstructionAccountInput<TAddress> = 
  | AccountNonSignerMeta<TAddress>
  | Address<TAddress>
  | HasAddress<TAddress>
| ProgramDerivedAddress<TAddress>;

Represents the accepted input values for a non-signer instruction account.

Namely, one of the following:

  • An Address — the most common case.
  • Any object exposing an address property (see HasAddress) — e.g. a framework's address wrapper class. Note that TransactionSigner | TransactionSigners satisfy this shape too, in which case they act as plain address carriers for non-signer accounts.
  • A ProgramDerivedAddress — i.e. an [address, bump] tuple.
  • An AccountNonSignerMeta — i.e. { address, role } — to explicitly override the role derived from the program's IDL, e.g. to mark an 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

InstructionSignerInput

On this page