Execute A Swap With The Aggregator API

Interacting With Mimboku Aggregator Router Contract

Execute A Swap With The Aggregator API

Sequence diagram

API sequence diagram

To execute a swap, the router (MimbokuRouter) contract requires the encoded swap data to be included as part of the transaction. This encoded swap data as well as other swap metadata are returned as part of the API response. As such, developers are expected to call the swap API prior to sending a transaction to the router contract.

JavaScript API Integration Guide

This guide shows how to integrate with the Mimboku DEX Aggregator using vanilla JavaScript and ethers.js.

Prerequisites

Setup

2. Token Approval (ERC20 Only)

3. Handle Wrap/Unwrap (IP ↔ WIP)

4. Prepare Swap Parameters

5. Execute Swap

6. Complete Swap Workflow

interface

This guide provides a complete JavaScript implementation for integrating with the Mimboku DEX Aggregator. Make sure to replace placeholder addresses and API endpoints with your actual values.

Last updated