[FEATURE]: Add transaction and receipt lookup RPC methods
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 58/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- api, backend-api-design
Rechercherichtung
Start by locating the JSON-RPC server and the code that handles transaction submission, block queries, and account balances. Trace how transactions and receipts are stored and serialized, then add lookup methods that return the requested data or null. Done means tests cover existing transactions and receipts, unknown hashes, and continued operation of existing RPC methods.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
I noticed that MiniChain's RPC server currently supports sending transactions and querying blocks and account balances. However, there are no RPC methods to look up a transaction or its receipt using a transaction hash.
This would be useful for developers building wallets, explorers, or applications on top of MiniChain, as they need a way to check transaction details and execution status.
Proposed Changes
Add two RPC methods:
mc_getTransactionByHash(txHash)– Returns the transaction details for the given hash, ornullif it is not found.mc_getTransactionReceipt(txHash)– Returns the corresponding receipt, including status, gas used, logs, and contract address, ornullif no receipt is available.
Expected Outcome
Developers should be able to retrieve transaction details and execution results directly through MiniChain's JSON-RPC interface.
Testing
- Test lookup of an existing transaction.
- Test lookup of an existing transaction receipt.
- Test unknown transaction hashes.
- Ensure existing RPC methods continue to work.
I would like to work on this feature if the maintainers consider it useful.
- Vorherrschende Sprache
- Python
- Sterne
- 12
- Forks
- 27
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus StabilityNexus/MiniChain
-
[BUG]: Handle JSON-RPC notifications and empty batches correctlyEvtl. vergeben @Muneerali199 hat das vor 10 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
StabilityNexus/MiniChain#177 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
automatic-copyright-year: keep README copyright currentEvtl. vergeben @anshulchikhale30-p hat das vor 7 Tagen übernommen. Offendocumentation enhancement
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 35/100
StabilityNexus/MiniChain#189 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Difficulty: bound per-block EMA moves, add a difficulty floor, and preserve state across restartsEvtl. vergeben @anshulchikhale30-p hat das vor 7 Tagen übernommen. Offenbug documentation enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
StabilityNexus/MiniChain#187 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: Blocks on a different parent are classified INVALID and get the sender bannedEvtl. vergeben @kansalakshat hat das vor 7 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
StabilityNexus/MiniChain#185 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: P2P sync downloads full 500-block chunks without headers-first validationEvtl. vergeben @anshulchikhale30-p hat das vor 14 Tagen übernommen. Offenbug documentation enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
StabilityNexus/MiniChain#178 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in StabilityNexus/MiniChain
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
huggingface/datasets#9128 ·
Maintainer antworten meist innerhalb von 1 Tag
-
priority:low ready-for-dev
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
OpenHands/extensions#975 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Function/dict state handlers can't supply provider-state injected values (`generate.provider_state`)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pact-foundation/pact-python#1789 ·
Maintainer antworten meist innerhalb von 9 Tagen
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
juandresrodca/AdminForge#66 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag