Error
A valid request URL is required to generate request examples{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellAmount": "<string>",
"expectedBuyAmount": "<string>",
"minBuyAmount": "<string>",
"typedData": "<string>",
"needsAuthorization": true,
"source": "<string>",
"expiresAt": "<string>"
}{
"error": "SWAP_FAILED",
"message": "pair not supported on this chain"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Swap
Get an EVM swap quote
Get a gasless EVM token swap quote. Requires the relayer to be configured with a swapChain (see FacilitatorOptions). Returns a quote ID, expected amounts, and EIP-712 typed data for the swap authorization.
This endpoint is available only when the EVM swap rail is configured. If swapChain is absent, BuckspayClient.swap() fails with SWAP_FAILED.
POST
/
swap
/
quote
Error
A valid request URL is required to generate request examples{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellAmount": "<string>",
"expectedBuyAmount": "<string>",
"minBuyAmount": "<string>",
"typedData": "<string>",
"needsAuthorization": true,
"source": "<string>",
"expiresAt": "<string>"
}{
"error": "SWAP_FAILED",
"message": "pair not supported on this chain"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
Body
application/json
Request body for POST /swap/quote. Corresponds to the body built in buckspayFacilitator.quoteSwap().
Response
Swap quote computed.
Swap quote returned by POST /swap/quote. Mirrors the swapQuoteResponseSchema zod schema in @buckspay/relayer.

