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

Centralized RPC Providers #9

Closed
zmitton opened this issue Feb 11, 2019 · 5 comments
Closed

Centralized RPC Providers #9

zmitton opened this issue Feb 11, 2019 · 5 comments

Comments

@zmitton
Copy link
Owner

zmitton commented Feb 11, 2019

edit

fixed! infura now supports this


At time of this writing neither Infura nor any RPC provider's support eth_getProof, but infura should in the very near future. ETC chain supports the call iff using multigeth, but against no service central services are known to be running it.

Implications

getting storage Proofs and Account proofs wont work unless your RPC provider supports eth_getProof. Solution is to run geth/parity-ethereum/multigeth locally for those Additionally it needs to be a full or archive node if you want to get historic proofs.

@zmitton
Copy link
Owner Author

zmitton commented Feb 11, 2019

Try this one liner from the console to see if it's working yet. Or "http://mainnet.infura.io" with whatever URL you want to test:

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getProof","params":["0x9cc9bf39a84998089050a90087e597c26758685d",["","d471a47ea0f50e55ea9fc248daa217279ed7ea3bb54c9c503788b85e674a93d1"],"latest"],"id":1}' -H "Content-type:application/json" https://mainnet.infura.io

zmitton pushed a commit that referenced this issue Mar 8, 2019
feat: add resources for documentation driven development
@zmitton
Copy link
Owner Author

zmitton commented May 3, 2019

wow! looks like infura finally supports it!

@zmitton
Copy link
Owner Author

zmitton commented May 3, 2019

note to self: update readme then close issue

@zimmah
Copy link

zimmah commented Dec 3, 2020

Try this one liner from the console to see if it's working yet. Or "http://mainnet.infura.io" with whatever URL you want to test:

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getProof","params":["0x9cc9bf39a84998089050a90087e597c26758685d",["","d471a47ea0f50e55ea9fc248daa217279ed7ea3bb54c9c503788b85e674a93d1"],"latest"],"id":1}' -H "Content-type:application/json" https://mainnet.infura.io

How do I know what params to send to get the data of a specific block?

This request works, but I have no clue how to construct the params, and getProof is nowhere to be found in infuras own documentation.

I assume "latest" can be replaced by a specific block number, but how do I know which key to use?

@zmitton
Copy link
Owner Author

zmitton commented Dec 17, 2020

The above curl request is just for troubleshooting that your connection is working. Please read the API for this JS module. It does not require the same arguments.

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

No branches or pull requests

3 participants
@zimmah @zmitton and others