Token bridging between chains

A user wants to transfer ETH from Ethereum to Polygon at low cost. Sonc Labs offers the optimal route.

from sonc import BridgeOptimizer

bridge = BridgeOptimizer()
route = bridge.find_best_route("ETH", "Polygon", amount=2.0)
print(f"Beste Route: {route}")

Last updated