Call Data API
Last updated
Last updated
Endpoint to generate the necessary call data for executing a token swap on the Rooster Protocol.
Address of the input token. Use '0x0000000000000000000000000000000000000000' for the native gas token.
Address of the output token.
Address of the recipient of the output tokens.
Amount of the input token to swap (in its smallest unit, e.g., Wei).
Optional. Slippage tolerance percentage (e.g., 3 for 3%). Defaults to a predefined value.
Optional. Minimum amount of output tokens expected (in Wei). If not provided, it will be calculated based on the slippage.