ResolvedInstructionAccount
Represents a resolved account input for an instruction.
During instruction building, account inputs are resolved to this type which captures
the account value alongside the signer and writable flags declared by the program's IDL.
The value can be any InstructionAccountInput, any InstructionSignerInput,
or null for optional accounts.
The optional isSigner flag describes whether the IDL requires the account to sign the
transaction — with 'either' meaning the account may or may not be a signer, in which
case providing a TransactionSigner value is what marks it as one. Omitting the
flag — e.g. in program clients generated before its introduction — is equivalent to
setting it to 'either'.
Example
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TAddress extends string | string | The address type, defaults to string. |
TValue extends | InstructionAccountInput<TAddress> | InstructionSignerInput<TAddress> | null | | InstructionAccountInput<TAddress> | InstructionSignerInput<TAddress> | null | The type of the resolved value. |