• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/sysvars
  • fetchSysvarLastRestartSlot

Function fetchSysvarLastRestartSlot

  • fetchSysvarLastRestartSlot(
        rpc: Rpc<GetAccountInfoApi>,
        config?: FetchAccountConfig,
    ): Promise<SysvarLastRestartSlot>
  • Fetch the LastRestartSlot sysvar.

    Information about the last restart slot (hard fork).

    The LastRestartSlot sysvar provides access to the last restart slot kept in the bank fork for the slot on the fork that executes the current transaction. In case there was no fork it returns 0.

    Parameters

    • rpc: Rpc<GetAccountInfoApi>
    • Optionalconfig: FetchAccountConfig

    Returns Promise<SysvarLastRestartSlot>

    • Defined in packages/sysvars/src/last-restart-slot.ts:64

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc