v2

Get a gateway quote.

Checks the available liquidity and provides a quote.

get/v2/get-quote

Query parameters

srcChainstring required

Source chain

dstChainstring required

Destination chain

senderstring

Address sending the funds

recipientstring required

Address receiving the funds

srcTokenstring required

Source token address

dstTokenstring required

Destination token address

amountstring required

Amount to swap (in smallest unit, e.g., sats or wei)

gasRefillstring

Deprecated: gas refill is no longer supported. Supplying this field is rejected with an error. Removed in V3.

slippagestring required

Slippage tolerance (in basis points, e.g., 300 = 3%)

strategyTargetstring

Deprecated: custom strategies are no longer supported. Supplying this field is rejected with an error. Removed in V3.

strategyMessagestring

Deprecated: custom strategies are no longer supported. Supplying this field is rejected with an error. Removed in V3.

affiliatesstring

Comma-separated list of <address>:<bps> pairs, e.g. 0xf39F…:50,0x70997…:25. Omit or send an empty string for no affiliate fees. Max [intents::MAX_AFFILIATES] entries; total bps MUST NOT exceed [intents::MAX_AFFILIATE_TOTAL_BPS]; each bps MUST be > 0.

Response

Get a quote

OR
OR

Changes

Changed in 3 of the 19 revisions of this API.5228

  • ca0ef15d5879222See the full diff
    • added subschema #1 subschema #2 subschema #3 to the response body oneOf list for the response status 200

      response-body-one-of-added

    • added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 subschema #8 subschema #9 subschema #10 subschema #11 to the details/oneOf[GatewayErrorDetailsV2]/ response property oneOf list for the response status 400

      response-property-one-of-added

    • added the new AFFILIATE_FEES_NOT_SUPPORTED_FOR_ROUTE enum value to the code/oneOf[GatewayErrorCodeV2Variants]/ response property for the response status 400

      response-property-enum-value-added

    • added the new UNKNOWN enum value to the code/oneOf[GatewayErrorCodeV2Variants]/ response property for the response status 400

      response-property-enum-value-added

    • removed subschema #1 subschema #2 subschema #3 from the response body oneOf list for the response status 200

      response-body-one-of-removed

    • removed GatewayErrorDetails GatewayErrorDetailsV2Variants from the details/oneOf[GatewayErrorDetailsV2]/ response property oneOf list for the response status 400

      response-property-one-of-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • f38ecb0aac58325See the full diff
    • added GatewayErrorCode GatewayErrorCodeV2Variants to the code response property oneOf list for the response status 400

      response-property-one-of-added

    • added GatewayErrorDetailsV2 to the details response property oneOf list for the response status 400

      response-property-one-of-added

    • the code response's property type/format changed from string/ to / for status 400

      response-property-type-changed

    • removed the DISABLED_CHAIN enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the DUPLICATE_ORDER enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the EXCEEDED_LIMIT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the GAS_ESTIMATE_FAILED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the GLOBAL_LIMIT_EXCEEDED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_CONFIRMED_FUNDS enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_PAYMENT_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_SOLVER_BALANCE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INSUFFICIENT_SWAP_AMOUNT enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INTERNAL_ERROR enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_AFFILIATE_FEE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_DESTINATION_CHAIN_ID enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_ORDER_ARGS enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the INVALID_REQUEST enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the NO_ROUTE enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the ORDER_EXPIRED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the ORDER_NOT_FOUND enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the PER_ACCOUNT_LIMIT_EXCEEDED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the QUOTE_AMOUNT_TOO_LOW enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SIMULATION_FAILED enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SLIPPAGE_TOO_HIGH enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the SLIPPAGE_TOO_LOW enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed the UNABLE_TO_COVER_FEES enum value from the code response property for the response status 400

      response-property-enum-value-removed

    • removed GatewayErrorDetails from the details response property oneOf list for the response status 400

      response-property-one-of-removed

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog