[FEATURE]: Add transaction and receipt lookup RPC methods

Đang mở
#176 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Thushara3005 đang làm issue này rồi.

Từ ngày 12/11/2026.

  • #184 của @Thushara3005 — đang mở

Đá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ả

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.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của StabilityNexus/MiniChain

Tất cả issue của StabilityNexus/MiniChain

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.