# \[ethjs-query\] while formatting outputs from RPC ‘{“value”:{“code”:-32000,”message”:”replacement transaction underpriced”}}’

**URL:** <https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878>\
**Category:** Swaps and Bridges\
**Created:** [June 6, 2023, 9:30am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878 "2023-06-06T09:30:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user2170](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@user2170](https://community.metamask.com/u/user2170)\
**Post date:** [June 6, 2023, 9:30am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/1 "2023-06-06T09:30:09Z")

</div>

So there are a lot of topics about this but I did not find a solution.  
First I was trying to swap tokens in Sushiswap and Pancakeswap and I was getting this [ethjs-query] error. I tried to increase the gas price, did not help.  
Then I tried to swap in MetaMask, got the same error, and tried more times. And now I have swaping transaction stuck (transaction id from MetaMask 0xa34f7ef77e794e1d54b33eebe6347ed26416526a9e2239c1ebee0bd087b66002)  
 ![image](https://europe1.discourse-cdn.com/metamask/original/3X/d/7/d74d45cc3439967de92efac00253ecff5d5e9244.png)  
If I try to cancel getting the same [ethjs-query] error if I try to speed it up same, even when I enter a high gas price.

So I update MetaMask, and was reading this article: [https://support.metamask.io/hc/en-us/articles/4402538041869-Error-ethjs-query-while-formatting-outputs-from-RPC-transaction-underpriced-error-](https://support.metamask.io/hc/en-us/articles/4402538041869-Error-ethjs-query-while-formatting-outputs-from-RPC-transaction-underpriced-error-)  
I did not find advance gass control option in my advance settings  
 ![image](https://europe1.discourse-cdn.com/metamask/original/3X/9/c/9cb97aaed0ff2993b16f96553eddc41508a6fe9e.png)

Also, I did check my Polygon network configurations, looks correct.

And I can’t create a ticket (Logged in) as it is not active for me:  
 ![image](https://europe1.discourse-cdn.com/metamask/original/3X/f/d/fd7170f9df6383a921571c12cfeb34305f2151ef.png)

---

<div class="post-metadata">

**Author:** ![Maryam](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/maryam/32/14141_2.png) [@Maryam](https://community.metamask.com/u/Maryam)\
**Post date:** [June 6, 2023, 10:21am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/2 "2023-06-06T10:21:08Z")

</div>

Hello @user2170, welcome to the MetaMask community,

> [@user2170](#):
>
> First I was trying to swap tokens in Sushiswap and Pancakeswap and I was getting this [ethjs-query] error.

On which network you got the error?

> [@user2170](#):
>
> 0xa34f7ef77e794e1d54b33eebe6347ed26416526a9e2239c1ebee0bd087b66002

Is this transaction on the Polygon network? IF yes, I could not find the transaction on Polygon scan. If it is on Polygon network, then check your account on the Polygon scan, **if the transaction is not seen on the explorer** , then try to clear the account activity and nonce data.  
Settings\> Advanced\> Clear activity and nonce data

> [@user2170](#):
>
> And I can’t create a ticket (Logged in) as it is not active for me:

Please refer to the following article.

> **[I can't access the 'Start a Conversation' button on the Support page](https://support.metamask.io/hc/en-us/articles/5973459712283)**
>
> The 'Start a Conversation' button on our Support page allows you to access a live chat, and get through to an agent if our bot doesn't resolve your issue first. It looks like this on desktop browse...

---

<div class="post-metadata">

**Author:** ![user2170](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@user2170](https://community.metamask.com/u/user2170)\
**Post date:** [June 6, 2023, 10:31am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/3 "2023-06-06T10:31:32Z")

</div>

First of all thanks for the prompt reply.

1. **On which network you got the error?**  
On Polygon  
2. **Clear activity and nonce data**  
I did that and it helped to remove the pending transaction, but still getting the same error when I try to swap tokens.  
3. **Please refer to the following article.**

I turned off Adblocker and now I can start a conversation. Should I do that or we could try to fix it here on the forum and others will also be able to find the solution later?

---

<div class="post-metadata">

**Author:** ![Maryam](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/maryam/32/14141_2.png) [@Maryam](https://community.metamask.com/u/Maryam)\
**Post date:** [June 6, 2023, 10:44am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/4 "2023-06-06T10:44:40Z")

</div>

> [@user2170](#):
>
> I did that and it helped to remove the pending transaction, but still getting the same error when I try to swap tokens.

Changing the Polygon network RPC may help you. You can do it via chainlist. Remove the 2 spaces I inserted in the link.  
https:// chainlist. org/  
Click the arrow below the the Polygon network box on Chainlist. There you can find a list of RPCs. Choose one at the top of the list and add it to your MetaMask wallet.  
The following article is related.

> **[How to add a custom network RPC](https://support.metamask.io/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC)**
>
> Contents:
> 
> Adding via Chainlist
> Adding popular networks quickly
> Adding networks manually
> 
>  
> MetaMask can access many more networks than just Ethereum mainnet: you can add any EVM-compatible network...

> [@user2170](#):
>
> Should I do that or we could try to fix it here

Please do what I have suggested above. Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![user2170](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@user2170](https://community.metamask.com/u/user2170)\
**Post date:** [June 6, 2023, 11:14am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/5 "2023-06-06T11:14:08Z")

</div>

**Changing the Polygon network RPC may help you.**  
I did try it, and still getting the same error. I tried inserting different RPC links with no luck.

---

<div class="post-metadata">

**Author:** ![user2170](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@user2170](https://community.metamask.com/u/user2170)\
**Post date:** [June 6, 2023, 11:24am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/6 "2023-06-06T11:24:14Z")

</div>

Also when I try to swap tokens in data i see this message  
 ![image](https://europe1.discourse-cdn.com/metamask/original/3X/3/6/36b9d5b0ab5c72f6df3e070c69231aa2e6dc275d.png)

---

<div class="post-metadata">

**Author:** ![Maryam](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/maryam/32/14141_2.png) [@Maryam](https://community.metamask.com/u/Maryam)\
**Post date:** [June 6, 2023, 11:47am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/7 "2023-06-06T11:47:07Z")

</div>

First, make sure that both your MetaMask wallet and browser are the latest version. Clear the browser cache as well. If it does not help, install the same wallet on another browser. If after doing all these suggestions the error persists, please contact the support team via the following link and report what you have done and the error you got.

> **[MetaMask](https://support.metamask.io/hc/en-us)**

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/metamask/original/3X/3/8/3812168020a49f264784b1dbfcf12435abbb09ad.png) [@system](https://community.metamask.com/u/system)\
**Post date:** [July 6, 2023, 9:30am UTC](https://community.metamask.com/t/ethjs-query-while-formatting-outputs-from-rpc-value-code-32000-message-replacement-transaction-underpriced/25878/8 "2023-07-06T09:30:30Z")

</div>

Closed on July 6, 2023, 9:30am UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
