[FEATURE]: Add transaction and receipt lookup RPC methods

Offen
#176 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Thushara3005 arbeitet bereits daran.

Seit 12.11.2026.

  • #184 von @Thushara3005 — offen

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

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

enhancement
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, or null if it is not found.
  • mc_getTransactionReceipt(txHash) – Returns the corresponding receipt, including status, gas used, logs, and contract address, or null if 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

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus StabilityNexus/MiniChain

Alle Issues in StabilityNexus/MiniChain

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.