Fetch the current price of Solayer's sUSD stablecoin by reading its interest-bearing mint configuration.

Input: None

Returns: The current price of sUSD relative to USD (1.0 = $1.00)

Example: Fetch the current sUSD price

{ "solayerSusdTask": {} }

Implements

Constructors

  • Constructs a new SolayerSusdTask.

    Parameters

    Returns SolayerSusdTask

Methods

  • Converts this SolayerSusdTask to JSON.

    Returns { [k: string]: any }

    JSON object

  • Creates a new SolayerSusdTask instance using the specified properties.

    Parameters

    Returns SolayerSusdTask

    SolayerSusdTask instance

  • Decodes a SolayerSusdTask 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 SolayerSusdTask

    SolayerSusdTask

    If the payload is not a reader or valid buffer

    If required fields are missing

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

    Parameters

    • reader: Uint8Array<ArrayBufferLike> | Reader

      Reader or buffer to decode from

    Returns SolayerSusdTask

    SolayerSusdTask

    If the payload is not a reader or valid buffer

    If required fields are missing

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

    Parameters

    • message: ISolayerSusdTask

      SolayerSusdTask message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: ISolayerSusdTask

      SolayerSusdTask message or plain object to encode

    • Optionalwriter: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

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

      Plain object

    Returns SolayerSusdTask

    SolayerSusdTask

  • Gets the default type url for SolayerSusdTask

    Parameters

    Returns string

    The default type url

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

    Parameters

    • message: SolayerSusdTask

      SolayerSusdTask

    • Optionaloptions: IConversionOptions

      Conversion options

    Returns { [k: string]: any }

    Plain object

  • Verifies a SolayerSusdTask message.

    Parameters

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

      Plain object to verify

    Returns string

    null if valid, otherwise the reason why it is not