Get Gasless Quote
Get the best quote with a pre-built EIP-712 Permit2 object for a gasless swap.
Query Parameters
Input token identifier on the source chain. Required. Pass the chain-specific token address or mint address exactly as xPath stores it.
Output token identifier on the destination chain. Required. Pass the chain-specific token address or mint address exactly as xPath stores it.
Input amount to quote, encoded as a base-10 integer string in the token's smallest unit.
Source chain for the gasless swap input token.
int640 <= valueDestination chain ID for the gasless swap output token.
int640 <= valueWallet address authorizing the Permit2 signature and supplying the input token.
Destination wallet address that should receive the final output tokens.
Integrator fee in basis points, where 100 = 1%. Optional.
int320 <= valueEnables multi-bridge route candidates during gasless quote planning. Optional.
Route ranking mode for gasless quote selection. Optional. Use the enum values defined by the API schema.
"value_max" | "balanced" | "speed_max"Maximum slippage tolerance for the gasless route, expressed as a percentage.
doubleInput acquisition mode for the gasless flow. Required. Use the mode expected by the executor for Permit2-backed execution.
int320 <= valueOptional Permit2 signature deadline window in minutes.
int640 <= valueOptional opaque metadata string to associate with the gasless quote request.
Optional allowlist of provider keys to use during gasless route planning.
Optional denylist of provider keys to exclude during gasless route planning.
Response Body
application/json
curl -X GET "https://api.xpath.rath.fi/gasless/quote?fromToken=string&toToken=string&amount=string&fromChain=0&toChain=0&sender=string&acquisitionMode=0"{
"code": 0,
"data": [
{
"calldataTemplate": {
"executionPlan": {},
"innerData": "string",
"meta": "string",
"to": "string",
"value": "string"
},
"deadline": "string",
"eip712": {
"domain": {
"chainId": 0,
"name": "string",
"verifyingContract": "string"
},
"message": {
"deadline": "string",
"nonce": "string",
"permitted": {
"amount": "string",
"token": "string"
},
"spender": "string"
},
"primaryType": "string",
"types": {
"PermitTransferFrom": [
{
"name": "string",
"type": "string"
}
],
"TokenPermissions": [
{
"name": "string",
"type": "string"
}
]
}
},
"fee": {
"feeAmount": "string",
"feeRecipient": "string",
"feeUsd": 0.1
},
"nonce": "string",
"quote": {
"amount": "string",
"amountOut": "string",
"amountOutUsd": 0,
"amountUsd": 0,
"expiry": 0,
"fees": {
"integratorFee": "string",
"integratorFeeUsd": 0.1,
"routeFee": "string",
"routeFeeUsd": 0.1
},
"fromToken": {
"address": "string",
"chain": 0,
"decimals": 0,
"icon": "string",
"name": "string",
"priceUsd": 0,
"symbol": "string"
},
"gasFee": {
"gasFee": "string",
"gasFeeUsd": 0.1,
"gasLimit": "string",
"gasToken": {
"address": "string",
"chain": 0,
"decimals": 0,
"icon": "string",
"name": "string",
"symbol": "string"
},
"gasPrice": "string"
},
"integratorId": "string",
"minAmountOut": "string",
"minAmountOutUsd": 0,
"path": [
{
"amount": "string",
"amountOut": "string",
"fromToken": "string",
"provider": {
"icon": "string",
"name": "string",
"type": "string"
},
"toToken": "string",
"type": "string"
}
],
"providers": [
{
"icon": "string",
"name": "string",
"type": "string"
}
],
"quoteId": "string",
"receiver": "string",
"sender": "string",
"slippage": 0,
"toToken": {
"address": "string",
"chain": 0,
"decimals": 0,
"icon": "string",
"name": "string",
"priceUsd": 0,
"symbol": "string"
},
"estimatedTimeMs": 0,
"routeKind": "string"
},
"quoteId": "string"
}
],
"message": "string"
}