Supercharge your dApp with on-chain Best Execution on Starknet with AVNU

3 min readMay 1, 2023

AVNU is a decentralized exchange protocol designed to offer the best execution on Starknet.

Our mission is to build the Liquidity Infrastructure that aims to empower traders and dApps with the best execution. We believe that the only way to serve our customers is to secure the most competitive prices for them, as well as access to the broadest range of assets while providing an exceptional user experience that sets the industry standard.

You can read more about AVNU here.

Provide the Best Prices for Your Users

By leveraging AVNU, you’ll be able to deliver top-tier execution for your users. Our platform is designed with easy dApp integration in mind, focusing on providing a solid, reliable, and secure infrastructure that ensures excellent performance.

You’ll also have the opportunity to generate additional revenue. You can easily add your own platform fee to each transaction, creating a new income stream while still offering your users competitive prices and top-notch execution.

We offer a straightforward and user-friendly solution by providing a single endpoint that grants access to the best prices from a wide variety of liquidity sources. This includes decentralized exchanges, market makers, and more to come in the future. The best part is, you won’t need to make any changes on your end as we continue to expand our sources of liquidity. Our goal is to make the integration process seamless, allowing you to enjoy the benefits of AVNU’s aggregation services without any hassle.

AVNU’s Portal

We are always looking for feedback. If you have any problems or suggestions, please drop us a message.

Security is Our Priority

We prioritize security, making certain that our system is fortified against potential threats.

For example, the AVNU API includes a security feature to ensure that the response comes from the AVNU API and not an attacker. AVNU is capable of signing the entire response body. We provide you with public keys, which can be used to verify the validity of the body based on the signature and the public key.

It’s Fast, But Don’t Trust, Verify!

AVNU’s API is already remarkably fast, but we’re constantly working to make it even faster. We have innovative ideas in the pipeline to not only enhance performance but also to improve the quality of the returned quotes, ensuring even better execution for our users. However, you don’t need to take our word for it; you can verify the speed and reliability of our API yourself or check our status page to see the latest updates on our system’s performance. At AVNU, we’re committed to providing a cutting-edge service that continually evolves to meet the growing demands of the DeFi ecosystem.

AVNU’s API — Get quotes response time

Ok, But How Does It Work?

AVNU’s Exchange Flow

Integrating AVNU is straightforward. First, you may need to gather information about supported tokens and possible quote sources. Next, fetch the quote. Optionally, you can fetch prices from all AMMs without route optimization. To execute a returned quote, call the API to obtain the necessary information: calldata, entrypoint, and contract address. With these details, the user can finally execute the quote. It’s that simple.

You can see all the AVNU’s API documentation here.

If you want to integrate AVNU in a Javascript/Typescript environment, we provide an SDK to ease the integration: @avnu/avnu-sdk. You can find a quick guide here and the complete documentation here.

Need an SDK in another language? Let us know.