# How to send a transaction in MetaMask without showing a confirmation popup?

**URL:** <https://community.metamask.com/t/how-to-send-a-transaction-in-metamask-without-showing-a-confirmation-popup/31008>\
**Category:** Feature Requests\
**Created:** [November 18, 2025, 11:04am UTC](https://community.metamask.com/t/how-to-send-a-transaction-in-metamask-without-showing-a-confirmation-popup/31008 "2025-11-18T11:04:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PheonixDevs](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@PheonixDevs](https://community.metamask.com/u/PheonixDevs)\
**Post date:** [November 18, 2025, 11:04am UTC](https://community.metamask.com/t/how-to-send-a-transaction-in-metamask-without-showing-a-confirmation-popup/31008/1 "2025-11-18T11:04:34Z")

</div>

I’m building a web dApp using React + TypeScript + ethers.js.

When a Stop Loss (SL) or Take Profit (TP) level is reached, my frontend calls a function that sends a transaction to close the position.

Since the transaction uses the MetaMask signer (from `BrowserProvider(window.ethereum)`), MetaMask always opens a confirmation popup and requires the user to click Confirm.

For SL/TP auto-close, I want to send the transaction _without_ showing the MetaMask confirmation popup and without any user interaction.

Is it technically possible to send a blockchain transaction using MetaMask without user confirmation?

Code:

```javascript
const pollAndAutoClose = async () => {
  const price = await contract.priceFor(Date.now() / 1000);
  const spot = parseFloat(ethers.formatUnits(price, 18));

  for (const pos of positions) {
    const hitSL = pos.stopLoss > 0 && spot <= pos.stopLoss;
    const hitTP = pos.takeProfit > 0 && spot >= pos.takeProfit;
    if (!hitSL && !hitTP) continue;

    await contract.connect(signer).closePosition(pos.id);
    // MetaMask popup appears here
  }
};

```

---

<div class="post-metadata">

**Author:** ![Coffee7643](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/coffee7643/32/36480_2.png) [@Coffee7643](https://community.metamask.com/u/Coffee7643)\
**Post date:** [November 18, 2025, 12:25pm UTC](https://community.metamask.com/t/how-to-send-a-transaction-in-metamask-without-showing-a-confirmation-popup/31008/2 "2025-11-18T12:25:54Z")

</div>

Hi, could you please create a post regarding this on our new Builder Hub [https://builder.metamask.io/](https://builder.metamask.io/) as everything developer-related was moved there?  
Thank you! 😀 ☕
