Liquidity
Get the borrow quote for a liquidity transaction based on the input data
Calculates the borrow quote including borrow cost, required input/output, and duration
get/liquidity/v2/chain/{srcChain}/protocol/{protocol}/type/{type}/quote
Path parameters
protocolstring required
Protocol name (e.g., Across)
typestring required
Quote algorithm type (e.g., ExactInput, ExactOutput)
srcChainstring required
Source CAIP chain ID (e.g., eip155:1)
Query parameters
dstChainstring required
Destination CAIP chain ID (e.g., eip155:1)
exclusivestring
Exclusive fill flag (true/false)
amountstring required
Amount of tokens for which we are requesting borrow quote (in the smallest denomination)
tokenstring required
Token address on destination (hex)
poolstring
Preferred liquidity pool address to borrow from (hex)
Response
Successfully retrieved borrow quote