28 #include <jsonrpccpp/server.h> 29 #include <jsonrpccpp/common/exception.h> 42 struct TransactionSkeleton;
76 virtual std::string eth_protocolVersion()
override;
77 virtual std::string eth_hashrate()
override;
78 virtual std::string eth_coinbase()
override;
79 virtual bool eth_mining()
override;
80 virtual std::string eth_gasPrice()
override;
82 virtual std::string eth_blockNumber()
override;
83 virtual std::string eth_getBalance(std::string
const& _address, std::string
const& _blockNumber)
override;
84 virtual std::string eth_getStorageAt(std::string
const& _address, std::string
const& _position, std::string
const& _blockNumber)
override;
85 virtual std::string eth_getStorageRoot(std::string
const& _address, std::string
const& _blockNumber)
override;
86 virtual std::string eth_getTransactionCount(std::string
const& _address, std::string
const& _blockNumber)
override;
87 virtual std::string eth_pendingTransactions()
override;
88 virtual Json::Value eth_getBlockTransactionCountByHash(std::string
const& _blockHash)
override;
89 virtual Json::Value eth_getBlockTransactionCountByNumber(std::string
const& _blockNumber)
override;
90 virtual Json::Value eth_getUncleCountByBlockHash(std::string
const& _blockHash)
override;
91 virtual Json::Value eth_getUncleCountByBlockNumber(std::string
const& _blockNumber)
override;
92 virtual std::string eth_getCode(std::string
const& _address, std::string
const& _blockNumber)
override;
93 virtual std::string eth_sendTransaction(
Json::Value const& _json)
override;
94 virtual std::string eth_call(
Json::Value const& _json, std::string
const& _blockNumber)
override;
95 virtual std::string eth_estimateGas(
Json::Value const& _json)
override;
96 virtual bool eth_flush()
override;
97 virtual Json::Value eth_getBlockByHash(std::string
const& _blockHash,
bool _includeTransactions)
override;
98 virtual Json::Value eth_getBlockByNumber(std::string
const& _blockNumber,
bool _includeTransactions)
override;
99 virtual Json::Value eth_getTransactionByHash(std::string
const& _transactionHash)
override;
100 virtual Json::Value eth_getTransactionByBlockHashAndIndex(std::string
const& _blockHash, std::string
const& _transactionIndex)
override;
101 virtual Json::Value eth_getTransactionByBlockNumberAndIndex(std::string
const& _blockNumber, std::string
const& _transactionIndex)
override;
102 virtual Json::Value eth_getTransactionReceipt(std::string
const& _transactionHash)
override;
103 virtual Json::Value eth_getUncleByBlockHashAndIndex(std::string
const& _blockHash, std::string
const& _uncleIndex)
override;
104 virtual Json::Value eth_getUncleByBlockNumberAndIndex(std::string
const& _blockNumber, std::string
const& _uncleIndex)
override;
105 virtual std::string eth_newFilter(
Json::Value const& _json)
override;
106 virtual std::string eth_newFilterEx(
Json::Value const& _json)
override;
107 virtual std::string eth_newBlockFilter()
override;
108 virtual std::string eth_newPendingTransactionFilter()
override;
109 virtual bool eth_uninstallFilter(std::string
const& _filterId)
override;
110 virtual Json::Value eth_getFilterChanges(std::string
const& _filterId)
override;
111 virtual Json::Value eth_getFilterChangesEx(std::string
const& _filterId)
override;
112 virtual Json::Value eth_getFilterLogs(std::string
const& _filterId)
override;
113 virtual Json::Value eth_getFilterLogsEx(std::string
const& _filterId)
override;
117 virtual bool eth_submitWork(std::string
const& _nonce, std::string
const&, std::string
const& _mixHash)
override;
118 virtual bool eth_submitHashrate(std::string
const& _hashes, std::string
const& _id)
override;
119 virtual std::string eth_register(std::string
const& _address)
override;
120 virtual bool eth_unregister(std::string
const& _accountId)
override;
121 virtual Json::Value eth_fetchQueuedTransactions(std::string
const& _accountId)
override;
122 virtual std::string eth_signTransaction(
Json::Value const& _transaction)
override;
123 virtual Json::Value eth_inspectTransaction(std::string
const& _rlp)
override;
124 virtual std::string eth_sendRawTransaction(std::string
const& _rlp)
override;
eth::AccountHolder const & ethAccounts() const
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::vector< RPCModule > RPCModules
virtual bool eth_notePassword(std::string const &) override
Manages real accounts (where we know the secret key) and proxy accounts (where transactions to be sen...
eth::AccountHolder & m_ethAccounts
virtual RPCModules implementedModules() const override
eth::Interface * client()
const unsigned SensibleHttpPort
Main API hub for interfacing with Ethereum.
JSON-RPC api implementation.
const unsigned SensibleHttpThreads