InstructionAccountInput
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
addressproperty (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 Parameter | Default type | Description |
|---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |