MetaMask / MetaMask/metamask-extension

Error while trying to subscribe to pendingTransactions

Open
#6,925 3 comments 0 reactions 0 assignees View on GitHub
area-api type-enhancement
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

A clear and concise description of what the bug is.

My contract supports 3 types of events: eventA, eventB and eventC.

When i try to:

```
web3.eth
.subscribe("pendingTransactions", function(error, result) {
console.log(error);
})
```

I get the following error:

inpage.js:1 MetaMask - RPC Error: Error: SubscriptionManager - unsupported subscription type "newPendingTransactions"

Contributor guide

Open the contributing guide

Research direction

The report names SubscriptionManager in the MetaMask RPC error but no file, test, or entry point. Start by reproducing the web3.eth subscription request and tracing how the pendingTransactions/newPendingTransactions type is handled. Done requires an agreed behavior for this unsupported subscription, but the issue does not state whether support, a clearer error, or documentation is expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.