fetchSysvarLastRestartSlot

function fetchSysvarLastRestartSlot(
    rpc,
    config?,
): Promise<
    Readonly<{
        lastRestartSlot: bigint;
    }>
>;

Fetches the LastRestartSlot sysvar account using any RPC that supports the GetAccountInfoApi.

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<Readonly<{ lastRestartSlot: bigint; }>>

On this page