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

implement JSON RPC #9

Open
wanderer opened this issue Oct 23, 2014 · 6 comments
Open

implement JSON RPC #9

wanderer opened this issue Oct 23, 2014 · 6 comments
Assignees

Comments

@wanderer
Copy link
Member

https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC

@wanderer wanderer self-assigned this Nov 1, 2014
@wanderer
Copy link
Member Author

transact and blanceAt should be priority to support wallelts

@wanderer
Copy link
Member Author

the RPC has been split into two files ethRPC.js which uses defines the functions for the RPC and wsRPC.js which implements WS server.

@wanderer wanderer assigned fractastical and unassigned wanderer Jan 15, 2015
@Latrasis
Copy link

Just to get my head around the recent updates here (#31): Is the xhrRpc for the server instance (+CORS?) and wsRPC for a tool instance?

@kumavis
Copy link
Member

kumavis commented Jan 19, 2015

xhrRpc and wsRpc are two 'protocol adapters' for the implementation of the json rpc spec. They listen for messages over their protocol and pass them on to the core piece ethRpc that handles the actual execution and calculation of result.

@kumavis
Copy link
Member

kumavis commented Jan 19, 2015

re: CORS - Cross Origin Resource Sharing
The browser requires special headers to allow js to read the response back from an xhr.
Now that I added them, a hosted app could hit your local ethereum client to read from the blockchain.
There are security risks to be considered here, so we'd likely want to create a whitelist mechanism.
The idea is that you could use a node-ethereum client as a publicly queryable service.

☁️ That thought lead me to wanting to change the spec to make the rpc stateless by removing eth_setDefaultBlock and related methods.

@Latrasis
Copy link

Looking at jsonp, it allows bypassing cors client-side

@wanderer wanderer assigned wanderer and unassigned fractastical Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants