spanDEX

Submit
spanDEXspandex.sh
spandex.sh

spanDEX

AI summary of the linked article

spanDEX is a TypeScript library, published as @spandex/core, for fetching swap quotes from multiple decentralized exchange providers. The article is a code snippet showing how getQuote is called with a chain ID, input and output token addresses, an exact-input amount, slippage in basis points, and a strategy option set to bestPrice. The example swaps 1 WETH for USDbC on Base (chain ID 8453), and it throws an error if no provider returns a successful quote.

Recommended by 3 curators
avatar
very cool, wish i could do this onchain though.