Kit
Type aliases

IAccountLookupMeta

IAccountLookupMeta<TAddress, TLookupTableAddress> = AccountLookupMeta<TAddress, TLookupTableAddress>

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

Type Parameters

Type ParameterDefault type
TAddress extends stringstring
TLookupTableAddress extends stringstring

Deprecated

Use AccountLookupMeta instead. It was only renamed.

Example

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

On this page