quoteBuy(amountWeth)
Routes RHC-WETH → WABIT through the deployed TradeRouter and returns venue, actual input used and WABIT output.
Open-source helpers for the live WABIT/RHC-WETH market. Read exact-input quotes and curve state, compare Ethereum L1 reference pools, and build unsigned TradeRouter calldata. Searchers bring their own inventory, RPCs, signing and execution.
Routes RHC-WETH → WABIT through the deployed TradeRouter and returns venue, actual input used and WABIT output.
Routes WABIT → RHC-WETH through the same lifecycle-aware TradeRouter interface.
Reads venue, activation/graduation state, curve parameters, WABIT inventory and RHC-WETH balance.
Reads the Ethereum WABIT/WETH and WABIT/USDT V2 reserves directly from L1 using the searcher's RPC.
Returns unsigned {to,data,value} for an exact-input WETH→WABIT TradeRouter call.
Returns unsigned {to,data,value} for an exact-input WABIT→WETH TradeRouter call.
npm install viem
import { parseUnits } from 'viem';
import { DaWabSearcherKit } from './dawab-searcher-kit.mjs';
const kit = new DaWabSearcherKit({
ethereumRpcUrl: process.env.ETHEREUM_RPC_URL
});
const state = await kit.curveState();
const buy = await kit.quoteBuy(parseUnits('0.01', 18));
const sell = await kit.quoteSell(parseUnits('100000000000', 18));
const l1 = await kit.l1ReferencePrices();
https://dawabit.tech/.well-known/dawablauncher.json
https://dawabit.tech/searcher/manifest.json
The kit does not execute or sign trades. Searchers determine profitability, allowances, slippage, gas, inventory placement and transaction submission independently.