Constructs a new JupiterSwapTask.
Optionalproperties: IJupiterSwapTaskProperties to set
OptionalallowA list of AMM markets to allow.
Optional API key for authenticated requests
OptionalbaseThe amount of in_token_address tokens to swap.
OptionalbaseThe amount of in_token_address tokens to swap.
OptionaldenyA list of AMM markets to deny.
JupiterSwapTask directRoutesOnly.
The input token address.
The output token address.
OptionalquoteThe amount of out_token_address tokens to swap.
OptionalquoteThe amount of out_token_address tokens to swap.
OptionalRoutesJupiterSwapTask RoutesFilters.
The allowable slippage on the swap in decimal form (e.g. 0.5 is 0.5% slippage)
OptionalSwapJupiterSwapTask SwapAmount.
JupiterSwapTask version.
Converts this JupiterSwapTask to JSON.
JSON object
StaticcreateCreates a new JupiterSwapTask instance using the specified properties.
Optionalproperties: IJupiterSwapTaskProperties to set
JupiterSwapTask instance
StaticdecodeDecodes a JupiterSwapTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
JupiterSwapTask
StaticdecodeDecodes a JupiterSwapTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
JupiterSwapTask
StaticencodeEncodes the specified JupiterSwapTask message. Does not implicitly {@apilink oracle_job.OracleJob.JupiterSwapTask.verify|verify} messages.
JupiterSwapTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified JupiterSwapTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.JupiterSwapTask.verify|verify} messages.
JupiterSwapTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a JupiterSwapTask message from a plain object. Also converts values to their respective internal types.
Plain object
JupiterSwapTask
StaticgetGets the default type url for JupiterSwapTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a JupiterSwapTask message. Also converts values to other types if specified.
JupiterSwapTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a JupiterSwapTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Fetch the simulated price for a swap on JupiterSwap.
Input: None
Returns: The swap price on Jupiter for a given input and output token mint address.
Example: Fetch the JupiterSwap price for exchanging 1 SOL into USDC.
Example: Fetch the JupiterSwap price for exchanging 1000 SOL into USDC.