MetaMask / MetaMask/metamask-extension
[Bug]: wallet_getCapabilities - 9 exact GET requests are made to sentinel `/networks` API
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
**Describe the bug**
Whenever I trigger the wallet_getCabapibiliets 9 exact GET requests are made to sentinel API with the same responses
`https://tx-sentinel-ethereum-mainnet.api.cx.metamask.io/networks`
**Screenshots/Recordings**
https://github.com/user-attachments/assets/ff37cb76-440a-490b-873d-4a0b925f7de6
**Steps to reproduce**
1. Connect to the test dapp
2. Click Get Capabilities
3. See 9 exact same GET requests are made to sentinel API
**Error messages or log output**
```shell
```
**Where was this bug found?**
**Version**
13.20.0
**Build type**
None
**Browser**
Chrome
**Operating system**
MacOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wallet_getCapabilities flow in the TypeScript extension and trace the requests sent to the Sentinel /networks endpoint while reproducing the issue in the test dapp. Done means clicking Get Capabilities no longer produces nine identical GET requests and the capability result remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100