Error
A valid request URL is required to generate request examples{
"forwarder": "<string>",
"collector": "<string>",
"token": "<string>",
"estimatedXlmFee": "<string>",
"tokenAmount": "<string>",
"expiresAtLedger": 2
}{
"error": "simulation_failed",
"message": "could not simulate the provided calls"
}{
"error": "unauthorized"
}{
"error": "horizon_unreachable"
}Fee
Quote a gas-in-token fee
Request a fee quote for paying Soroban gas in a token instead of XLM. The facilitator simulates the calls, prices the XLM fee as a token amount, and returns the quote including the FeeForwarder contract address and a ledger-based expiry.
The SDK uses this quote to build the FeeForwarder.forward() authorization entry before calling POST /relay with feeToken set.
POST
/
fee
/
quote
Error
A valid request URL is required to generate request examples{
"forwarder": "<string>",
"collector": "<string>",
"token": "<string>",
"estimatedXlmFee": "<string>",
"tokenAmount": "<string>",
"expiresAtLedger": 2
}{
"error": "simulation_failed",
"message": "could not simulate the provided calls"
}{
"error": "unauthorized"
}{
"error": "horizon_unreachable"
}Authorizations
Body
application/json
Request body for POST /fee/quote. Calls are simulated server-side to price the XLM fee as a token amount.
Response
Fee quote computed successfully.
Fee quote returned by POST /fee/quote. Mirrors the SDK FeeQuote type from @buckspay/core.

