# Metamask Aave loan repayment - Error getting txParams

**URL:** <https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111>\
**Category:** Other\
**Created:** [May 9, 2022, 8:23am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111 "2022-05-09T08:23:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![archmaster](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@archmaster](https://governance.aave.com/u/archmaster)\
**Post date:** [May 9, 2022, 8:23am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/1 "2022-05-09T08:23:29Z")

</div>

I’ve been struggling for two days and nights now trying to repay a loan I got from AAVE app. The loan is for $10,000 BUSD and 5.84 wETH was used for collateral. So I go to [[https://app.aave.com/-](https://app.aave.com/-)\>Your borrows-\>Repay-\>Collateral-\>MAX Debt amount to repay, but all I get is the error message: “There was some error. Please try changing the parameters or copy the error”. When I copy and paste the error says: “Error getting txParams”. And that’s it. I’ve tried changing the Max slippage rate, as well as the Debt Amount to Repay, but unless I go to as low as $100 BUSD repayment, all I get is the same error message. There’s $1,000 USD worth of ETH in my Metamask wallet to cover for gas fees. Please help. Thank you.

---

<div class="post-metadata">

**Author:** ![trey1975us](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@trey1975us](https://governance.aave.com/u/trey1975us)\
**Post date:** [May 13, 2022, 4:36pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/2 "2022-05-13T16:36:11Z")

</div>

Hi @archmaster , I am having the same issue! Have you managed to figure out the solution?

---

<div class="post-metadata">

**Author:** ![archmaster](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@archmaster](https://governance.aave.com/u/archmaster)\
**Post date:** [May 13, 2022, 7:35pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/3 "2022-05-13T19:35:47Z")

</div>

Hi @tray1975us. No. I never did, and was never able to contact anyone who could help me with this. As a result of that I got automatically liquidated on the last market dip, and the $6,000 usd worth of ETH that should have remained in my wallet are now worth only $900 usd. This is unacceptable, but the worst part of it is that there’s no one to put the blame on and no one will be responsible. DO NOT USE AAVE, IS THE WORST PIECE OF SHIT SOFTWARE I HAVE EVER INTERACTED WITH. As a web developer, I’ll make sure all of my site’s followers are aware of this.

---

<div class="post-metadata">

**Author:** ![trey1975us](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@trey1975us](https://governance.aave.com/u/trey1975us)\
**Post date:** [May 13, 2022, 8:15pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/4 "2022-05-13T20:15:45Z")

</div>

@archmaster OMG… I am scared now. I am trapped with know way to get my funds out of there. I am trying to join forums and all I get so far is scammers trying to get me to give up my private keys. This sucks!

---

<div class="post-metadata">

**Author:** ![banana\_fun](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@banana\_fun](https://governance.aave.com/u/banana_fun)\
**Post date:** [May 14, 2022, 2:35am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/5 "2022-05-14T02:35:36Z")

</div>

Damn - that sucks… I’ve never had any issue repaying a loan personally, so I wouldn’t be able to offer any help.

Were there any error messages thrown from the browser console?

Perhaps we can bring attention to this issue for future users or get the devs to implement more helpful error messages.

---

<div class="post-metadata">

**Author:** ![sakulstra](https://dub1.discourse-cdn.com/flex013/user_avatar/governance.aave.com/sakulstra/32/2002_2.png) [@sakulstra](https://governance.aave.com/u/sakulstra)\
**Post date:** [May 14, 2022, 7:43pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/6 "2022-05-14T19:43:26Z")

</div>

I think the aave interface repo ist a better place to report such issues [GitHub - aave/interface: An open source interface for the decentralized liquidity protocol Aave](https://github.com/aave/interface) so someone will see it.

“Error getting tx Params” can have multiple reasons. It essentially means that paraswap(which is used for the underlying swap) wasn’t able to build the TXN.  
If a repayment rate was shown before that means that for some reason the api wasn’t able to build a TXN for the route if found. Might be better to ask paraswap or look in the console network tab to see if there’s some more helpful error on the api response.

Reasons I saw in the past:

- buggy api
- api down/rate limited
- one of the amms used in the route blocking your address for whatever reason

Anyhow without any actual error message it’s hard to say anything as it’s just guessing. If your not comfortable with sharing your public wallet address you could try reaching out via intercom on [aave.com](http://aave.com) which will probably reach a developer.

* * *

One known issue with collateral repay right now is on repay with stETH which is quite special.

---

<div class="post-metadata">

**Author:** ![trey1975us](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@trey1975us](https://governance.aave.com/u/trey1975us)\
**Post date:** [May 15, 2022, 9:26pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/7 "2022-05-15T21:26:10Z")

</div>

Thanks sakulstra for your help! I just logged a question on the GitHub forum you suggested. Here is the actual error message I keep getting…(Any other thoughts?)

 ![AAVE Error Message](https://europe1.discourse-cdn.com/flex013/uploads/aave/original/2X/c/cdbe397f196d178972bdc7a29598ef9bb8c191a0.png)

---

<div class="post-metadata">

**Author:** ![CryptoDude100](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CryptoDude100](https://governance.aave.com/u/CryptoDude100)\
**Post date:** [April 21, 2023, 4:15am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/8 "2023-04-21T04:15:19Z")

</div>

Did anyone find a solution to this problem? I am currently and suddenly having this issue with Polygon V3. It’s been happening all day…before this, Aave has been working well for me for several months.

---

<div class="post-metadata">

**Author:** ![CryptoDude100](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CryptoDude100](https://governance.aave.com/u/CryptoDude100)\
**Post date:** [April 21, 2023, 6:28am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/9 "2023-04-21T06:28:33Z")

</div>

Did you guys figure out a solution for this error message? Im experiencing it right now.

---

<div class="post-metadata">

**Author:** ![spartan](https://dub1.discourse-cdn.com/flex013/user_avatar/governance.aave.com/spartan/32/49_2.png) [@spartan](https://governance.aave.com/u/spartan)\
**Post date:** [April 21, 2023, 3:07pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/10 "2023-04-21T15:07:43Z")

</div>

@CryptoDude100 What are the collateral and borrow assets you are trying to using in the transaction?

As mentioned earlier in the thread this error message is caused by a failure fetching a swap rate from the Paraswap API. One thing you can try is clearing your browser cache and retrying.

If the error is persistent we can report the specific asset pair to ParaSwap and see if can be addressed on their end.

---

<div class="post-metadata">

**Author:** ![CryptoDude100](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CryptoDude100](https://governance.aave.com/u/CryptoDude100)\
**Post date:** [April 21, 2023, 3:36pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/11 "2023-04-21T15:36:05Z")

</div>

Thanks for the reply. I am using Ledger Live. This morning, I received the message the first time or two I tried to supply Polygon to Aave. Then it finally worked and supplied the platform. But Im still having problems trying to borrow usdc. I am getting charged gas fees each time I try but the transaction keeps failing each time on the polygon network when I check the explorer. If this persists, Im thinking I may have to withdraw my Polygon (if I can) and exchange it for Ethereum and use it on V3. Do you have any idea why my borrow attempts are failing on Polygon V3?

---

<div class="post-metadata">

**Author:** ![Windsurf](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@Windsurf](https://governance.aave.com/u/Windsurf)\
**Post date:** [June 24, 2023, 1:18pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/12 "2023-06-24T13:18:19Z")

</div>

Hi there. I have the same problem. I am trying to pay USDT using USDC as colateral and USDT in my wallet, but I couln´t due to the message;  
There was some error. Please try changing the parameters or copy the error.

RotationProvider exceeded max number of retries. Last error: cannot estimate gas; transaction may fail or may require manual gas limit (error={“reason”:“processing response error”,“code”:“SERVER\_ERROR”,“body”:“{"jsonrpc":"2.0","id":43,"error":{"code":-32000,"message":"execution reverted"}}”,“error”:{“code”:-32000},“requestBody”:“{"method":"eth\_estimateGas","params":[{"value":"0x0","from":"0x6e14016c189db08049b6458dbdc4654e8a8c703d","to":"0x1809f186d680f239420b56948c58f8dbbcdf1e18","data":"0x4db9dc97000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000012baadc0e000000000000000000000000000000000000000000000000000000012a05f20000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000001465aae31000000000000000000000000000000000000000000000000000000006496fa95000000000000000000000000000000000000000000000000000000000000001b0db599b41d85ed84aec55c4b31863cd8a472f952032a8386ac3898894e7e03445798b87d524be5450c2e210353457b46fc10ca9fea3f2ccf2ad462887a44c6c300000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee57000000000000000000000000000000000000000000000000000000000000026487a639260000000000000000000000000000000000000000000000000000000000000020000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000012baadc0e000000000000000000000000000000000000000000000000000000012a05f200000000000000000000000000000000000000000000000000000000012a2d3192010000000000000000000000000000000000000000000000000000000003138800000000000000000000000000000000000000000000000000000000649740ff0000000000000000000000009abf798f5314bfd793a9e57a654bed35af4a1d600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220cc11770a159d44948ca1b33a5776de6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bdac17f958d2ee523a2206206994597c13d831ec7000064a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}],"id":43,"jsonrpc":"2.0"}”,“requestMethod”:“POST”,“url”:“[Web3](https://cloudflare-eth.com/v1/mainnet)”}, method=“estimateGas”, transaction=“accessList”:null}, code=UNPREDICTABLE\_GAS\_LIMIT, version=providers/5.5.3)

Thank you for help,

---

<div class="post-metadata">

**Author:** ![archmaster](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@archmaster](https://governance.aave.com/u/archmaster)\
**Post date:** [June 30, 2023, 10:22pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/14 "2023-06-30T22:22:53Z")

</div>

Hi, Jumita.

You need a programmer to look into the Google Chrome Console and see if she can do something with the information displayed. I could not figure it out and ended up losing a lot of money.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Jsimo01](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jsimo01](https://governance.aave.com/u/Jsimo01)\
**Post date:** [July 1, 2023, 12:31pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/15 "2023-07-01T12:31:43Z")

</div>

Me too. MM connected to AAVE, can’t repay my USDT loan with wallet funds or colatteral

---

<div class="post-metadata">

**Author:** ![Jsimo01](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jsimo01](https://governance.aave.com/u/Jsimo01)\
**Post date:** [July 4, 2023, 2:16pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/16 "2023-07-04T14:16:56Z")

</div>

Now it comes up with this error message which is new when trying to pay USDT back from collateral “Due to approval mechanics of USDT on Ethereum Mainnet, it cannot be used with the current adapter contract for this action” Can anyone decipher this for us simple folk out here?

---

<div class="post-metadata">

**Author:** ![spartan](https://dub1.discourse-cdn.com/flex013/user_avatar/governance.aave.com/spartan/32/49_2.png) [@spartan](https://governance.aave.com/u/spartan)\
**Post date:** [July 26, 2023, 5:40pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/17 "2023-07-26T17:40:20Z")

</div>

The USDT token on ETH mainnet has a non-standard approve function which wasn’t handled in the repay with collateral and collateral switch adapter contracts. It was updated in a new deployment of the adapter contracts and is live on the [Aave Interface](https://github.com/aave/interface), so these issues should be resolved @Windsurf @Jsimo01

---

<div class="post-metadata">

**Author:** ![harshjv](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@harshjv](https://governance.aave.com/u/harshjv)\
**Post date:** [July 31, 2023, 6:33am UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/18 "2023-07-31T06:33:08Z")

</div>

USDT smart contract won’t let you update the approval limit without first resetting it to 0. See: [$1.00 | Tether USD (USDT) Token Tracker | Etherscan](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7#code)

Go to [Token Approvals | Etherscan](https://etherscan.io/tokenapprovalchecker) or [https://revoke.cash](https://revoke.cash) and revoke the approval (set allowance to 0) for Aave, and then repay your debt from Aave frontend.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![aaveuser](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@aaveuser](https://governance.aave.com/u/aaveuser)\
**Post date:** [August 17, 2023, 5:29pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/19 "2023-08-17T17:29:56Z")

</div>

Hi, I am getting the same error now when trying to swap between usdc and wbtc on aave v2, avalanche network. I am trying to repay a loan but can’t do so. The error is “Error building transaction parameters”

---

<div class="post-metadata">

**Author:** ![archmaster](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@archmaster](https://governance.aave.com/u/archmaster)\
**Post date:** [August 17, 2023, 11:43pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/20 "2023-08-17T23:43:25Z")

</div>

I know, it´s terrible. I lost a buck load of money. I’m never using these platforms again. My advice is to get yourself a programmer to look into the matter, maybe she can shed some light. Also, you can try switching to a different browser and or device.  
Good luck.

---

<div class="post-metadata">

**Author:** ![MJW](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@MJW](https://governance.aave.com/u/MJW)\
**Post date:** [August 22, 2023, 7:47pm UTC](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111/21 "2023-08-22T19:47:08Z")

</div>

We’re you able to solve the problem? I am getting the same error now. Switched browsers and same issue. Any advice?

[Next page](https://governance.aave.com/t/metamask-aave-loan-repayment-error-getting-txparams/8111.md?page=2)
