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

Feat : eth_getReceipts API #25

Merged
merged 8 commits into from
Nov 4, 2022
Merged

Feat : eth_getReceipts API #25

merged 8 commits into from
Nov 4, 2022

Conversation

Wade-wemade
Copy link

Add eth_getReceipts
With this api, you can get all transaction receipts of a block at once.

parameter : block hash
return : types.receipts

internal/ethapi/api.go Outdated Show resolved Hide resolved
@@ -611,6 +611,18 @@ web3._extend({
params: 1,
inputFormatter: [web3._extend.formatters.inputTransactionFormatter]
}),
new web3._extend.Method({
name: 'getReceipts',
call: 'wemix_getReceipts',
Copy link

@wmxcreator wmxcreator Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, I would recommend changing the method name "eth_getReceipts" to "eth_getReceiptsByBlockHash".

Copy link

@wmxcreator wmxcreator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend change method name.

@Wade-wemade
Copy link
Author

Reflect feedback from @wmxcreator. Thank you.

@Wade-wemade Wade-wemade requested review from wmxcreator and removed request for sadoci, cp-khs and wm-jsong1230 November 3, 2022 03:08
@wmxcreator wmxcreator merged commit cbdfcd7 into wemixarchive:dev Nov 4, 2022
@wmxcreator
Copy link

LGTM

saddoc pushed a commit to saddoc/go-wemix that referenced this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants