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

Removed deprecated eth_coinbase from json-rpc docs[#13996] #13997

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

MaryNfs
Copy link
Contributor

@MaryNfs MaryNfs commented Sep 29, 2024

Description

As discussed in ethereum/go-ethereum#29747, eth_coinbase no longer returns an address in v1.14.0+ and has been deprecated.
This PR removes the deprecated eth_coinbase RPC method from the JSON-RPC API list.

Related Issue

Copy link

netlify bot commented Sep 29, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 45007ee
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/66fdf2934de7770008d6c41c
😎 Deploy Preview https://deploy-preview-13997--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 48 (🟢 up 2 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the content 🖋️ This involves copy additions or edits label Sep 29, 2024
@MaryNfs MaryNfs mentioned this pull request Oct 2, 2024
2 tasks
Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Thanks @MaryNfs! Agree with the issue you posted, but am hesitant to remove this entirely for archival/historical purposes.

I might suggest something similar to what the playground we link out to does:

https://ethereum-json-rpc.com/?method=eth_coinbase

If you go here you'll see that the eth_coinbase method is still available, but executing shows "details": "Method not supported".

I'd suggest we keep the h3 section and initial comment, and add a note that this method has been deprecated, and note as of when this occured. Something like this:

### eth_coinbase {#eth_coinbase}

Returns the client coinbase address.

**No longer supported (deprecated as of _____)**

public/content/developers/docs/apis/json-rpc/index.md Outdated Show resolved Hide resolved
@wackerow wackerow added the hacktoberfest Track hacktoberfest activity label Oct 2, 2024
@MaryNfs
Copy link
Contributor Author

MaryNfs commented Oct 3, 2024

I'd suggest we keep the h3 section and initial comment, and add a note that this method has been deprecated, and note as of when this occured. Something like this:

### eth_coinbase {#eth_coinbase}

Returns the client coinbase address.

**No longer supported (deprecated as of _____)**

Hi @wackerow
Thanks for the feedback!
I've made the changes as you suggested.
Let me know if there’s anything else you’d like me to adjust!

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @MaryNfs!

@@ -387,6 +387,8 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}

Returns the client coinbase address.

> **Note:** This method has been deprecated as of **v1.14.0** and is no longer supported. Attempting to use this method will result in a "Method not supported" error.
Copy link
Member

Choose a reason for hiding this comment

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

Attempting to use this method will result in a "Method not supported" error.

Should we consider replacing this sentence with a comment similar to below about using eth_accounts instead? Don't think it needs to block here, but curious thoughts for further iteration.

@wackerow wackerow merged commit 2c924d9 into ethereum:dev Oct 4, 2024
6 checks passed
Copy link

gitpoap-bot bot commented Oct 4, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

Be sure to join the Ethereum.org discord if you are interested in contributing further to the project or have any questions for the team.

GitPOAP: 2024 Ethereum.org Contributor:

GitPOAP: 2024 Ethereum.org Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@wackerow
Copy link
Member

wackerow commented Oct 4, 2024

@all-contributors please add @MaryNfs for content bug patch

Copy link
Contributor

@wackerow

I've put up a pull request to add @MaryNfs! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits hacktoberfest Track hacktoberfest activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated eth_coinbase
2 participants