Skip to main content

Integration Overview

Call the Dispatcher for the selected deployment. The pool address is an argument identifying the accounting context; the Dispatcher is the call destination.

First integration

  1. Pin the network, Dispatcher, installed ABI, and reviewed source version from Deployments and ABIs.
  2. Discover pools and read state at a consistent block.
  3. Build distinct pay and receive Reserve Asset arrays.
  4. Request a settlement quote.
  5. Convert net output to token units and choose per-asset minimums.
  6. Approve external pay tokens and submit the exchange.

Pick the correct operation

GoalQuoteExecute
Exchange Reserve AssetsquoteMultiswapForSettlement or quoteMultiswapForExecutionmultiswap
Issue LP TokensquoteProvideLiquidityprovideLiquidity
Redeem LP TokensquoteRemoveLiquidityremoveLiquidity
Submit a signed Reserve Asset orderSettlement quote, then signed intentmultiswapWithSignature

All names refer to selectors installed in the Dispatcher. Their availability must be verified for the chosen deployment.

Quote values use packed Float encoding. Settlement quantities and minimums use integer token base units; receive allocations use six decimals. Mixing these encodings is an integration error.

See Units and Errors before assembling calldata.