Decoded Address Lookup Table account.

const lut = decodeLookupTable(rawBytes);
console.log(`Addresses: ${lut.addresses.length}, Active: ${!lut.isDeactivated}`);

1.1.0

interface DecodedLookupTable {
    addresses: never[];
    authority: null;
    deactivationSlot: bigint;
    discriminator: number;
    isDeactivated: boolean;
    lastExtendedSlot: bigint;
    lastExtendedSlotStartIndex: number;
}

Properties

addresses: never[]

List of addresses stored in the table.

authority

Authority that can extend/close the table. null if frozen.

deactivationSlot: bigint

Slot at which deactivation was requested. MAX_U64 if still active.

discriminator: number

Discriminator (always 1 for lookup tables).

isDeactivated: boolean

Whether the table has been deactivated.

lastExtendedSlot: bigint

Last slot during which the table was extended.

lastExtendedSlotStartIndex: number

Start index within the last extension batch.