Universal Bridge: Advanced Filters

With the latest release of Universal Bridge, we've added a number of new filters to make building advanced payment UIs more convenient. These are available starting in v5.97.0 of the TypeScript SDK.
The /routes
endpoint (API) and Bridge.routes
function (SDK) now have an optional sortBy
option to determine how the returned routes will be ordered. The first option we've made available is sortBy: "popularity"
, which will ordered the returned routes based on the number of times they've been used. The following will return the 10 most popular routes originating from ETH on mainnet:
The maxSteps
filter already allows you to filter routes
based on the number of steps required to fulfill a routes. With this update, we've added this same option to the Buy.quote
, Buy.prepare
, Sell.quote
, and Sell.prepare
functions, as well as their corresponding API endpoints. You can now guarantee the quote returned uses a certain number of steps or fewer:
We've added a new endpoint and SDK function to get all chains supported by Universal Bridge along with their name, icon, and native currency.
This will return:
- Fixed an issue where Coinbase onramps were not returning the associated transaction hash
- Fixed routes returning the zero address rather than the native token address