Processing

Get a deposit quote

Changed on

Estimates fees, output, and completion time for a deposit.

post/quotes/preview

Request

Headers

x-api-keystring

API key for authentication

Example:your-api-key

Request body

accountstring required

Ethereum address (0x followed by 40 hex characters)

sourceChainIdstring required

CAIP-2 chain identifier (e.g. "eip155:8453")

sourceTokenstring required

Source token: a 0x address on an EVM source chain, or a base58 SPL mint on Solana.

direction'exactIn' | 'exactOut'

exactIn fixes the deposited amount and quotes what is delivered; exactOut fixes the delivered amountOut and quotes the deposit that produces it. Defaults to exactIn.

amountstring

Deposited amount in the source token's smallest unit. Required for (and only valid with) direction: exactIn.

amountOutstring

Delivered amount in the destination token's smallest unit. Required for (and only valid with) direction: exactOut; the quote's input.amount is then the deposit that produces it.

Example request

{
  "account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
  "sourceChainId": "eip155:8453",
  "sourceToken": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "direction": "exactIn",
  "amount": "1000000",
  "amountOut": "1000000"
}

Response

Indicative quote for the requested route

settlementLayerstring required
expiresAtinteger required
estimatedFillTimeSecondsinteger required

The orchestrator's estimate for the fill leg, in seconds. Covers bridging only; see timing.expectedSeconds for the end-to-end expectation.

Example response

{
  "estimatedFillTimeSeconds": 7,
  "timing": {
    "expectedSeconds": 42,
    "softDelaySeconds": 90,
    "escalatedDelaySeconds": 300
  }
}

Changes

    • info

      the endpoint scheme security internalProjectBearer was added to the API

    • info

      the endpoint scheme security tenantApiKey was added to the API

    • info

      the header request parameter x-api-key became optional

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status