wrenchHow to Integrate

Learn about how to integrate Bolt Liquidity with your application onchain to access zero slippage for your users.

Integration Options:

TypeScript SDK

To use the TS SDK in your app follow these steps:

  1. Obtaining the SDK: Download the Bolt SDK from the official npm repo.

  2. Configuring Your Environment: Add the Bolt SDK to your project and set up required dependencies.

  3. Testing: Validate your integration in a sandbox environment using the SDK’s built-in tools.

  4. Go Live: Switch to production and monitor usage.

Rust SDK

*Coming soon*

Off-chain Quoting & Simulation

For integrators building advanced routing or aggregation logic, Bolt’s pricing is fully deterministic given the current pool state. This allows amountIn → amountOut to be simulated off-chain without repeated on-chain quote calls.

Integrators can index or query the relevant pool state and replicate the contract math off-chain to efficiently evaluate multiple routes or split sizes, keeping quote latency low.

Reference swap math, examples, and test vectors are available to ensure off-chain simulations match on-chain execution exactly. Please reach out to the Bolt team to obtain the latest contract math and reference materials, which should always be sourced from the current on-chain implementation.

Next Steps

Continue to the Bolt SUI TypeScript SDK for detailed instructions on configuring the Bolt SDK in your environment.

For technical support, contact the team directly via our Contact & Support Channels

Last updated