diff --git a/src/eth/transaction.yaml b/src/eth/transaction.yaml index f90a6e871..6ce0e09af 100644 --- a/src/eth/transaction.yaml +++ b/src/eth/transaction.yaml @@ -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' diff --git a/src/schemas/receipt.yaml b/src/schemas/receipt.yaml index e57b4f12b..6c1e19eb3 100644 --- a/src/schemas/receipt.yaml +++ b/src/schemas/receipt.yaml @@ -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'