Ethereum
Ethereum real time endpoints
Ethereum real time methods follow the JSON-RPC specification and share the same endpoint, by protocol definition, the payload methodparameter is the one used to know which method is the one to be called. To call this methods, is mandatory to specify the currency, eth  in this case and the network in which to executed  the request.  Bitcoin real time methods are exposed in the following endpoint http://server/eth/{network}/ws  where network has to be replace by the network name in which make the request
Subscribe to balance changes for any Ethereum address
Method name to be called. For this operation, the field value must be subscribeToAddressBalance
subscribeToAddressBalanceSuccessful response
POST /subscribeToAddressBalance HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 77
{
  "id": null,
  "jsonrpc": null,
  "method": "subscribeToAddressBalance",
  "params": null
}Successful response
{
  "id": null,
  "jsonrpc": null,
  "result": null
}Unsubscribe to balance changes for any address
Method name to be called. For this operation, the field value must be unsubscribeFromAddressBalance
unsubscribeFromAddressBalanceSuccessful response
POST /unsubscribeFromAddressBalance HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 81
{
  "id": null,
  "jsonrpc": null,
  "method": "unsubscribeFromAddressBalance",
  "params": null
}Successful response
{
  "id": null,
  "jsonrpc": null,
  "result": null
}Subscribe to new blocks
Method name to be called. For this operation, the field value must be subscribeToNewBlocks
subscribeToNewBlocksSuccessful response
POST /subscribeToNewBlocks HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 72
{
  "id": null,
  "jsonrpc": null,
  "method": "subscribeToNewBlocks",
  "params": null
}Successful response
{
  "id": null,
  "jsonrpc": null,
  "result": null
}Subscribe from new blocks
Method name to be called. For this operation, the field value must be unsubscribeFromNewBlocks
unsubscribeFromNewBlocksSuccessful response
POST /unsubscribeFromNewBlocks HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 76
{
  "id": null,
  "jsonrpc": null,
  "method": "unsubscribeFromNewBlocks",
  "params": null
}Successful response
{
  "id": null,
  "jsonrpc": null,
  "result": null
}Last updated