[FEATURE]: Add transaction and receipt lookup RPC methods
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- api, backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 12
- Fork
- 27
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của StabilityNexus/MiniChain
-
[BUG]: Handle JSON-RPC notifications and empty batches correctlyCó thể đã có người làm @Muneerali199 đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
StabilityNexus/MiniChain#177 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automatic-copyright-year: keep README copyright currentCó thể đã có người làm @anshulchikhale30-p đã nhận 7 ngày trước. Đang mởdocumentation enhancement
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
StabilityNexus/MiniChain#189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Difficulty: bound per-block EMA moves, add a difficulty floor, and preserve state across restartsCó thể đã có người làm @anshulchikhale30-p đã nhận 7 ngày trước. Đang mởbug documentation enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
StabilityNexus/MiniChain#187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Blocks on a different parent are classified INVALID and get the sender bannedCó thể đã có người làm @kansalakshat đã nhận 7 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
StabilityNexus/MiniChain#185 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: P2P sync downloads full 500-block chunks without headers-first validationCó thể đã có người làm @anshulchikhale30-p đã nhận 14 ngày trước. Đang mởbug documentation enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
StabilityNexus/MiniChain#178 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của StabilityNexus/MiniChain
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
huggingface/datasets#9128 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:low ready-for-dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
OpenHands/extensions#975 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Function/dict state handlers can't supply provider-state injected values (`generate.provider_state`)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pact-foundation/pact-python#1789 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
juandresrodca/AdminForge#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày