Constructs a new SolayerSusdTask.
Optionalproperties: ISolayerSusdTaskProperties to set
Converts this SolayerSusdTask to JSON.
JSON object
StaticcreateCreates a new SolayerSusdTask instance using the specified properties.
Optionalproperties: ISolayerSusdTaskProperties to set
SolayerSusdTask instance
StaticdecodeDecodes a SolayerSusdTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
SolayerSusdTask
StaticdecodeDecodes a SolayerSusdTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SolayerSusdTask
StaticencodeEncodes the specified SolayerSusdTask message. Does not implicitly {@apilink oracle_job.OracleJob.SolayerSusdTask.verify|verify} messages.
SolayerSusdTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified SolayerSusdTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.SolayerSusdTask.verify|verify} messages.
SolayerSusdTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a SolayerSusdTask message from a plain object. Also converts values to their respective internal types.
Plain object
SolayerSusdTask
StaticgetGets the default type url for SolayerSusdTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a SolayerSusdTask message. Also converts values to other types if specified.
SolayerSusdTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a SolayerSusdTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
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