thirdweb
snowtrace

Estimate Arb

(estimateArb)

view

_amount

_router1

_router2

token0

token1


Use this function in your app


import { readContract } from "thirdweb"; const data = await readContract({ contract, method: "function estimateArb(uint256 _amount, address _router1, address _router2, address token0, address token1) view returns (uint256 starting, uint256 ending)", params: [_amount, _router1, _router2, token0, token1] })