I'm currently implementing the Avalanche 0x API for swapping in our UI. The quote arguments are the same as what we use for the ETH mainnet, but it returns Gas estimation failed
; not sure how to debug this, can someone please help?
Below is an example call we make:
buyToken: AVAX contract address
sellToken: USDC contract address
takerAddress: the address of the user that is initiating the swap
sellAmount: amount in AVAX
NOTE: we also use affiliateAddress and slippagePercentage but I haven't included them in the link above
Thanks!