What am I Doing Wrong with 1Inch API Allowance Checker?

Hi, I am following the latest Moralis Web3 DEX tutorial on YT, and at 01:10:59 – When I enter USDC token address and my wallet address in 1Inch Docs API Swagger Allowance Checker, the server response for the allowance is still “0”, even though I definitely have USDC in my wallet…

What could I be doing wrong?

Additional Details:

Here’s the link to the 1Inch API allowance checker I’m referring to: https://docs.1inch.io/docs/aggregation-protocol/api/swagger/ (section: /v5.0/1/approve/allowance)

Here are the screenshots with my results:

Thank you very much for your help in advance

OK. I figured it out. Here’s what I did. There was a missing step in the tutorial, right before 01:10:53

It looks like unlimited USDC was already approved for spending via the Metamask prompt for, “Set a spending cap for your… USDC” prior to the tutorial…

So, I just went into my local dapp, initiated a swap of [1] USDC to [X] LINK, then waited for the MM token allowance prompt, set the spending cap for USDC to “Use default”, spent the gas fee and approved it…

Then went back into 1inch API docs, allowance section, repeated the steps again at 01:10:53, and got the same results. So everything should be working fine now. Hope that helps!

Here’s the Metamask prompt I’m referring to:

Hope that helps someone else!

2 Likes