commonprefix / commonprefix/kevlar

eth_sendRawTransaction and eth_getBalance keep repeating and failing

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
265
Forks
26
PR merge metrics
No merged PRs in 30d

Description

```
An unexpected error occurred while executing "eth_sendRawTransaction" JSON-RPC method: Error: RPC request failed
at RPC. (/home/ubuntu/.nvm/versions/node/v18.12.1/lib/node_modules/@lightclients/kevlar/node_modules/@lightclients/patronum/lib/rpc.js:93:19)
at Generator.next ()
at fulfilled (/home/ubuntu/.nvm/versions/node/v18.12.1/lib/node_modules/@lightclients/kevlar/node_modules/@lightclients/patronum/lib/rpc.js:28:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

An unexpected error occurred while executing "eth_getBalance" JSON-RPC method: Error: RPC request failed
at RPC. (/home/ubuntu/.nvm/versions/node/v18.12.1/lib/node_modules/@lightclients/kevlar/node_modules/@lightclients/patronum/lib/rpc.js:93:19)
at Generator.next ()
at fulfilled (/home/ubuntu/.nvm/versions/node/v18.12.1/lib/node_modules/@lightclients/kevlar/node_modules/@lightclients/patronum/lib/rpc.js:28:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
```

these two errors keep showing up, my guess is that wallet will keep calling this rpc and rpc failed without sending error to wallet so that wallet will keep calling.

How to fix this issue? And how to reset?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the eth_sendRawTransaction and eth_getBalance failures and inspect the RPC stack trace location, @lightclients/patronum/lib/rpc.js:93. Trace how the wallet handles the failed RPC response and determine whether repeated calls can be stopped or reset. Done means the failure path is understood and the issue has a verified fix or documented reset procedure.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.