POST
/
scroll
/
calldata
{
  "success": true,
  "calldata": "<string>"
}

https://api.fibrous.finance/scroll

Generate the calldata required to execute a swap through the Fibrous Finance router contract on Scroll. This endpoint provides the raw transaction data that can be used to execute the swap directly through a Web3 provider.

Request Body Parameters

route_response
object
required

The complete response object from the /scroll/route endpoint. This contains all the necessary information about the optimal route.

slippage
number
required

Maximum acceptable slippage in percentage (0.1 to 49). Example: 0.5 for 0.5% slippage tolerance

signer
string
required

The address that will sign and execute the transaction. This address must have sufficient balance of the input token.

Response

success
boolean

Indicates if the request was successful.

calldata
string

The hex-encoded calldata to execute the swap through the router contract.