v1
latestOpenAPI 3.0.02026-08-0451764.0 KBQuote and sign in one request
This endpoint streamlines the swap process by combining the quote generation and signing steps into a single request. Users can obtain real-time pricing information for an asset swap and simultaneously receive the required signature and transaction data for execution on the blockchain. This unified flow reduces latency, simplifies integration, and ensures secure, ready-to-broadcast transactions without the need for multiple API calls.
Path parameters
ID of the blockchain network
Query parameters
Address of the pool. If not present, the best pool will be calculated
Amount of time between accepting a quote and receiving the quote on the blockchain. As this value increases, the quote will get worse for the user.
Desired quantity of assets to receive as part of the swap. This field is mutually exclusive with input_amount
Desired quantity of assets you are willing to exchange. This field is mutually exclusive with output_amount
Identifier of the asset you want to provide for the swap. Should correspond to the asset name returned from the pool call
Identifier of the asset you want to receive in the swap. Should correspond to the asset name returned from the pool call
Address that will receive the output token
For DEX aggregator partners that are using their own smart contract to mediate the interaction between users and Blade. Aggregators should use the address of the account that they will pull tokens from (i.e., the EOA user address) as opposed to the address of their deployed contract. By default, destination_address will be used.
For use with the calldata swap feature, it can be set to any string and is used for identification purposes in the event logs. By default is 0x436c697070657200000000000000000000000000000000000000000000000000 that is the representation of Clipper
Send this as true if we want to get the bytes representation of the swap in the response. Client can use this to be sent directly to the pool contract for execution.
Response
Quote and signature generated successfully