Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eth_getReceiptProof #372

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/eth/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,14 @@
name: Receipt Information
schema:
$ref: '#/components/schemas/ReceiptInfo'
- name: eth_getReceiptProof
summary: Returns the merkle proof for a given transaction receipt.
params:
- name: Transaction hash
required: true
schema:
$ref: '#/components/schemas/hash32'
result:
name: Receipt proof
schema:
$ref: '#/components/schemas/ReceiptProof'
15 changes: 15 additions & 0 deletions src/schemas/receipt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,18 @@ ReceiptInfo:
title: effective gas price
description: The actual value per gas deducted from the senders account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).
$ref: '#/components/schemas/uint'
ReceiptProof:
title: Receipt proof
type: object
required:
- receipt
- proof
properties:
value:
title: receipt
$ref: '#/components/schemas/ReceiptInfo'
proof:
title: proof
type: array
items:
$ref: '#/components/schemas/bytes'