Skip to main content
Takes the opaque quoteToken from /quote and returns one of three shapes tagged by executionType. See Execution Types for the branch logic.

Request

quoteToken
string
required
The opaque token from /quote.
destinationAddress
string
Recipient, if not supplied at quote time.
refundAddress
string
Refund address, if not supplied at quote time.
curl -s -X POST https://app.ravn.exchange/api/v1/execute \
  -H 'content-type: application/json' \
  -d '{ "quoteToken": "<from /quote>" }'

Response

One of three payloads:
{ "executionType": "TRANSACTION",
  "transaction": { "to": "0x…", "data": "0x…", "value": "0", "chainId": 1 } }
{ "executionType": "SIGNATURE",
  "typedData": { }, "approvalData": { },
  "submit": { "url": "/api/v1/submit-signature" } }
{ "executionType": "DEPOSIT",
  "deposit": { "address": "0x…", "amount": "1000000000000000000", "chainId": 1 },
  "statusRef": "0x…" }
Returns 410 QUOTE_EXPIRED if the quote has expired, or 400 QUOTE_INVALID if the token is malformed or tampered with. Request a fresh quote and retry.