Constructs a new BitFluxTask.
Optionalproperties: IBitFluxTaskProperties to set
The address of the input token.
The address of the output token.
The address of the BitFlux pool.
Optional. The RPC endpoint to use for requests. If not specified, a default RPC will be used.
Converts this BitFluxTask to JSON.
JSON object
StaticcreateCreates a new BitFluxTask instance using the specified properties.
Optionalproperties: IBitFluxTaskProperties to set
BitFluxTask instance
StaticdecodeDecodes a BitFluxTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
BitFluxTask
StaticdecodeDecodes a BitFluxTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
BitFluxTask
StaticencodeEncodes the specified BitFluxTask message. Does not implicitly {@apilink oracle_job.OracleJob.BitFluxTask.verify|verify} messages.
BitFluxTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified BitFluxTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.BitFluxTask.verify|verify} messages.
BitFluxTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a BitFluxTask message from a plain object. Also converts values to their respective internal types.
Plain object
BitFluxTask
StaticgetGets the default type url for BitFluxTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a BitFluxTask message. Also converts values to other types if specified.
BitFluxTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a BitFluxTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Fetch the current swap price from a BitFlux pool.
Input: None
Returns: The swap price between the specified input and output tokens.
Example: Fetch the swap price using a custom RPC provider