ResolvedInstructionAccount

type ResolvedInstructionAccount<TAddress, TValue> = object;

Represents a resolved account input for an instruction.

During instruction building, account inputs are resolved to this type which captures both the account value and whether it should be marked as writable. The value can be an Address, a ProgramDerivedAddress, a TransactionSigner, or null for optional accounts.

Example

const mintAccount: ResolvedInstructionAccount = {
  value: mintAddress,
  isWritable: true,
};

Type Parameters

Type ParameterDefault typeDescription
TAddress extends stringstringThe address type, defaults to string.
TValue extends | Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress> | null| Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress> | nullThe type of the resolved value.

Properties

isWritable

isWritable: boolean;

value

value: TValue;

On this page