Kit
Interfaces

AccountLookupMeta

Represents a lookup of the account's address in an address lookup table. It specifies which lookup table account in which to perform the lookup, the index of the desired account address in that table, and metadata about its mutability. Notably, account addresses obtained via lookups may not act as signers.

Typically, you will use one of its subtypes.

roleisSignerisWritable
ReadonlyLookupAccount<TAddress, TLookupTableAddress>AccountRole.READONLYNoNo
WritableLookupAccount<TAddress, TLookupTableAddress>AccountRole.WRITABLENoYes

Example

type RentSysvar = ReadonlyLookupAccount<
    'SysvarRent111111111111111111111111111111111',
    'MyLookupTable111111111111111111111111111111'
>;

Type Parameters

Type ParameterDefault type
TAddress extends stringstring
TLookupTableAddress extends stringstring

Properties

PropertyModifierType
addressreadonlyAddress<TAddress>
addressIndexreadonlynumber
lookupTableAddressreadonlyAddress<TLookupTableAddress>
rolereadonlyWRITABLE | READONLY

On this page