Bridging optimization
bridging optimization
Finds the fastest and most cost-effective route to move tokens between blockchains.
Example:
from sonc import BridgeOptimizer
bridge = BridgeOptimizer()
route = bridge.find_best_route("ETH", "Polygon", amount=1.0)
print(route)Output:
{
"source_chain": "Ethereum",
"target_chain": "Polygon",
"fees": "0.005 ETH",
"estimated_time": "5 minutes"
}Last updated