How to add 1inch api DEX Course

Uncaught runtime errors:
×
ERROR
Network Error
AxiosError: Network Error
at XMLHttpRequest.handleError (http://localhost:3000/static/js/bundle.js:116741:14)

I suspect this error is caused by old 1inch public api being deprecated. I updated 5.0 to 5.2 in the api but obviously i need to add the api key somewhere but dunno where. In the swap.js?

This is about this course https://www.youtube.com/watch?v=t8U7GRrlYW8&t=2621s&ab_channel=MoralisWeb3

Hi @KemalCleva, I’d suggest checking the 1inch Swap API docs here - https://portal.1inch.dev/documentation/swap/quick-start, you’ll find more details on how to use the updated API

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.