Return the difference between an oracle's clock and the current timestamp at SYSVAR_CLOCK_PUBKEY.

Implements

Constructors

  • Constructs a new SysclockOffsetTask.

    Parameters

    Returns SysclockOffsetTask

Methods

  • Converts this SysclockOffsetTask to JSON.

    Returns { [k: string]: any }

    JSON object

  • Creates a new SysclockOffsetTask instance using the specified properties.

    Parameters

    Returns SysclockOffsetTask

    SysclockOffsetTask instance

  • Decodes a SysclockOffsetTask message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array<ArrayBufferLike> | Reader

      Reader or buffer to decode from

    • Optionallength: number

      Message length if known beforehand

    Returns SysclockOffsetTask

    SysclockOffsetTask

    If the payload is not a reader or valid buffer

    If required fields are missing

  • Decodes a SysclockOffsetTask message from the specified reader or buffer, length delimited.

    Parameters

    • reader: Uint8Array<ArrayBufferLike> | Reader

      Reader or buffer to decode from

    Returns SysclockOffsetTask

    SysclockOffsetTask

    If the payload is not a reader or valid buffer

    If required fields are missing

  • Encodes the specified SysclockOffsetTask message. Does not implicitly verify messages.

    Parameters

    • message: ISysclockOffsetTask

      SysclockOffsetTask message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified SysclockOffsetTask message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: ISysclockOffsetTask

      SysclockOffsetTask message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Creates a SysclockOffsetTask message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: { [k: string]: any }

      Plain object

    Returns SysclockOffsetTask

    SysclockOffsetTask

  • Gets the default type url for SysclockOffsetTask

    Parameters

    Returns string

    The default type url

  • Creates a plain object from a SysclockOffsetTask message. Also converts values to other types if specified.

    Parameters

    • message: SysclockOffsetTask

      SysclockOffsetTask

    • Optionaloptions: IConversionOptions

      Conversion options

    Returns { [k: string]: any }

    Plain object

  • Verifies a SysclockOffsetTask message.

    Parameters

    • message: { [k: string]: any }

      Plain object to verify

    Returns string

    null if valid, otherwise the reason why it is not