Hi I am trying to swap tokens using 0x. I try to use fillQuote funtion for swapping from fill the input from API of 0x but I am getting Error: VM Exception while processing transaction: reverted with reason string 'SWAP_CALL_FAILED' can anyone help me in resolving this error?

enter image description here

I am using this API to fill the input in this function https://api.0x.org/swap/v1/quote?buyToken=WETH&sellToken=DAI&sellAmount=100000000000000000


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.