Skip to main content
POST
/
api
/
v2
/
quote
/
reverse
cURL
curl --request POST \
  --url https://api.example.com/api/v2/quote/reverse \
  --header 'Content-Type: application/json' \
  --data '
{
  "quoteID": "quote:966ee977-586b-4bca-abf1-e7def508a19c",
  "dAppID": "<string>",
  "intentExecutionTypes": [
    "SELF_PUBLISH"
  ],
  "quoteRequest": {
    "sourceChainID": 123,
    "destinationChainID": 123,
    "sourceToken": "<string>",
    "destinationToken": "<string>",
    "sourceAmount": "<string>",
    "funder": "<string>",
    "recipient": "<string>",
    "refundRecipient": "<string>"
  },
  "contracts": {
    "sourcePortal": "0x1234567890abcdef1234567890abcdef12345678",
    "destinationPortal": "0x567890abcdef1234567890abcdef1234567890ab",
    "prover": "0xabcdef1234567890abcdef1234567890abcdef12"
  }
}
'

Body

application/json
quoteID
string
required

Unique identifier for the quote request

Example:

"quote:966ee977-586b-4bca-abf1-e7def508a19c"

dAppID
string
required
intentExecutionTypes
enum<string>[]
required

Array of intent execution types to fetch quotes for

Available options:
SELF_PUBLISH,
GASLESS
Example:
["SELF_PUBLISH"]
quoteRequest
object
required
contracts
object
gaslessIntentData
object

Optional gasless intent data containing permit signatures for token approvals and execution configuration

Response

201 - undefined