Overview

Integrate Dirol routing on Monad Mainnet.

Dirol API

Use the Dirol API to price and execute swaps on Monad Mainnet.

Base URL: https://api.dirol.io/api/v1

Chain ID: 143

Aggregator contract: 0x646462f4d0168A94fE1884c8ae82148a3618A18darrow-up-right

Endpoints

Quick start

1

Pick your tokens

Use GET /tokens to search by symbol or address.

You can also start with common pairs like WMON and USDC.

2

Request a quote

Call GET /quote with tokenIn, tokenOut, and amount.

Use raw token units. 1 WMON is 1000000000000000000.

3

Build the executable swap

Call GET /swap with the same inputs and add recipient.

The response includes tx.to, tx.data, tx.value, and tx.estimatedGas.

4

Approve and send

Approve the aggregator for ERC-20 inputs before sending the transaction.

For native MON, use the WMON address as tokenIn, skip approval, and send value = amountIn.

Example quote request

curl "https://api.dirol.io/api/v1/quote?tokenIn=0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A&tokenOut=0x754704Bc059F8C67012fEd69BC8A327a5aafb603&amount=1000000000000000000"

Current liquidity sources

Integration notes

  • slippageBps defaults to 50.

  • excludeSources accepts comma-separated source IDs.

  • /quote does not return calldata.

  • No rate limits are enforced right now. Keep request volume reasonable.

See Errors for status codes and fixes.

Last updated