Constructs a new CurveFinanceTask.
Optional
properties: ICurveFinanceTaskProperties to set
Required. Specifies which blockchain to use when reading information from Curve Finance.
The number of decimal places to include in the returned price value.
The on-chain address of the Curve Finance pool to fetch pricing data from.
Optional. The RPC endpoint to use for blockchain requests. If not specified, a default RPC will be used which may have rate limits.
Converts this CurveFinanceTask to JSON.
JSON object
Static
createCreates a new CurveFinanceTask instance using the specified properties.
Optional
properties: ICurveFinanceTaskProperties to set
CurveFinanceTask instance
Static
decodeDecodes a CurveFinanceTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
CurveFinanceTask
Static
decodeDecodes a CurveFinanceTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
CurveFinanceTask
Static
encodeEncodes the specified CurveFinanceTask message. Does not implicitly {@apilink oracle_job.OracleJob.CurveFinanceTask.verify|verify} messages.
CurveFinanceTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified CurveFinanceTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.CurveFinanceTask.verify|verify} messages.
CurveFinanceTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a CurveFinanceTask message from a plain object. Also converts values to their respective internal types.
Plain object
CurveFinanceTask
Static
getGets the default type url for CurveFinanceTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a CurveFinanceTask message. Also converts values to other types if specified.
CurveFinanceTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a CurveFinanceTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Fetch pricing information from Curve Finance pools.
Input: None
Returns: The current price/exchange rate from the specified Curve pool.
Example: Fetch the price from a Curve pool on Ethereum
Example: Fetch the price using a custom RPC provider