Constructs a new SolayerSusdTask.
Optional
properties: ISolayerSusdTaskProperties to set
Converts this SolayerSusdTask to JSON.
JSON object
Static
createCreates a new SolayerSusdTask instance using the specified properties.
Optional
properties: ISolayerSusdTaskProperties to set
SolayerSusdTask instance
Static
decodeDecodes a SolayerSusdTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
SolayerSusdTask
Static
decodeDecodes a SolayerSusdTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SolayerSusdTask
Static
encodeEncodes the specified SolayerSusdTask message. Does not implicitly {@apilink oracle_job.OracleJob.SolayerSusdTask.verify|verify} messages.
SolayerSusdTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified SolayerSusdTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.SolayerSusdTask.verify|verify} messages.
SolayerSusdTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a SolayerSusdTask message from a plain object. Also converts values to their respective internal types.
Plain object
SolayerSusdTask
Static
getGets the default type url for SolayerSusdTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a SolayerSusdTask message. Also converts values to other types if specified.
SolayerSusdTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies 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