How will the outside API be like?

In Bitcoind, we have JSON-RPC, how can we gather data from the client / daemon to create third-party software?


  • KenKen Member Posts: 10
    Will it be possible to 'reach into' the Ethereum Network from outside?
  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    It wil certainly be possible, question is if someone will develop a nice library for it. I expect so. Also, would the interface be different between lightweight and full-nodes?

    * Will the 'networking side' of this be usable for other things? Maybe this isnt ethereums business, but message passing between nodes directly might be useful for stuff.(not sure if this one makes sense :) )

    * Yet another one, will there be a system to pass transactions to a ethereum wallet. (For purposes like this, I reckon is should have a way of transactions be under a name and under strict rules.)
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    "Will it be possible to 'reach into' the Ethereum Network from outside?"

    Of course, look at projects like or the very raw (but very real)
  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    @Stephan_Tual? second link is very raw :), there is a typo in the json file there. Think it is better to, use a local full-node/lightweight clients, if at all possible.(For instance run the server they are running locally)
  • VitalikButerinVitalikButerin Administrator Posts: 84 admin
    We'll have the standard options; I'm lobbying hard to have HTTP as well since that way every node will basically have a full block explorer API (if you turn on history storage).

    The commands will probably be get_balance, get_nonce, get_storage_at_index, get_block_header, get_block, get_transaction, pushtx
  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    Am i correct to recommend people run lightweight/full nodes clients locally? Was under the impression that could query the current state, at least.(though not history) Http over the clearweb is really trustful, and https is still trustful.(http to a locally running server basically only trusts the security of the computer itself)
  • jw1jw1 Member Posts: 27
    edited April 2014
    If HTTP is supported (and hope so), I recommend:
    * turn off CORS (disable same-origin policy) so single-page web apps (perhaps acquired from a torrent) can just work
    * don't put verbs in the url (as it's redundant) and institute versioning as in:
    ** /v1/balance (GET only)
    **/v1/transactions (GET and POST)
    **/v1/transactions/{transaction id} (GET)
    **/v1/transactions/addresses/{address}/storedValues/{index} (GET)
    ** etc...

    (Hope I got the data tree format right, but you get the idea)
Sign In or Register to comment.