| Modifier and Type | Class and Description |
|---|---|
class |
EthJsonRpcImpl.BinaryCallArguments |
JsonRpc.BlockResult, JsonRpc.CallArguments, JsonRpc.CompilationInfo, JsonRpc.CompilationResult, JsonRpc.FilterRequest, JsonRpc.LogFilterElement, JsonRpc.SyncingResult| Modifier and Type | Field and Description |
|---|---|
protected long |
initialBlockNumber
State fields
|
| Constructor and Description |
|---|
EthJsonRpcImpl(org.ethereum.util.blockchain.StandaloneBlockchain standaloneBlockchain) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccount(java.lang.String address,
org.ethereum.crypto.ECKey pair) |
protected org.ethereum.core.TransactionReceipt |
createCallTxAndExecute(JsonRpc.CallArguments args,
org.ethereum.core.Block block) |
protected org.ethereum.core.TransactionReceipt |
createCallTxAndExecute(JsonRpc.CallArguments args,
org.ethereum.core.Block block,
org.ethereum.core.Repository repository,
org.ethereum.db.BlockStore blockStore) |
java.lang.String[] |
eth_accounts() |
java.lang.String |
eth_blockNumber() |
java.lang.String |
eth_call(JsonRpc.CallArguments args,
java.lang.String bnOrId) |
java.lang.String |
eth_coinbase() |
JsonRpc.CompilationResult |
eth_compileSolidity(java.lang.String contract) |
java.lang.String |
eth_estimateGas(JsonRpc.CallArguments args) |
java.lang.String |
eth_gasPrice() |
java.lang.String |
eth_getBalance(java.lang.String address,
java.lang.String blockId) |
JsonRpc.BlockResult |
eth_getBlockByHash(java.lang.String blockHash,
java.lang.Boolean fullTransactionObjects) |
JsonRpc.BlockResult |
eth_getBlockByNumber(java.lang.String bnOrId,
java.lang.Boolean fullTransactionObjects) |
java.lang.String |
eth_getBlockTransactionCountByHash(java.lang.String blockHash) |
java.lang.String |
eth_getBlockTransactionCountByNumber(java.lang.String bnOrId) |
java.lang.String |
eth_getCode(java.lang.String address,
java.lang.String blockId) |
java.lang.String[] |
eth_getCompilers() |
java.lang.Object[] |
eth_getFilterChanges(java.lang.String id) |
java.lang.Object[] |
eth_getFilterLogs(java.lang.String id) |
java.lang.String |
eth_getLastBalance(java.lang.String address) |
java.lang.Object[] |
eth_getLogs(JsonRpc.FilterRequest filterRequest) |
java.lang.String |
eth_getStorageAt(java.lang.String address,
java.lang.String storageIdx,
java.lang.String blockId) |
TransactionResultDTO |
eth_getTransactionByBlockHashAndIndex(java.lang.String blockHash,
java.lang.String index) |
TransactionResultDTO |
eth_getTransactionByBlockNumberAndIndex(java.lang.String bnOrId,
java.lang.String index) |
TransactionResultDTO |
eth_getTransactionByHash(java.lang.String transactionHash) |
java.lang.String |
eth_getTransactionCount(java.lang.String address,
java.lang.String blockId) |
TransactionReceiptDTO |
eth_getTransactionReceipt(java.lang.String transactionHash) |
JsonRpc.BlockResult |
eth_getUncleByBlockHashAndIndex(java.lang.String blockHash,
java.lang.String uncleIdx) |
JsonRpc.BlockResult |
eth_getUncleByBlockNumberAndIndex(java.lang.String blockId,
java.lang.String uncleIdx) |
java.lang.String |
eth_getUncleCountByBlockHash(java.lang.String blockHash) |
java.lang.String |
eth_getUncleCountByBlockNumber(java.lang.String bnOrId) |
java.lang.String |
eth_hashrate() |
boolean |
eth_mining() |
java.lang.String |
eth_newBlockFilter() |
java.lang.String |
eth_newFilter(JsonRpc.FilterRequest fr) |
java.lang.String |
eth_newPendingTransactionFilter() |
java.lang.String |
eth_protocolVersion() |
java.lang.String |
eth_sendRawTransaction(java.lang.String rawData) |
java.lang.String |
eth_sendTransaction(JsonRpc.CallArguments args) |
java.lang.String |
eth_sendTransactionArgs(java.lang.String from,
java.lang.String to,
java.lang.String gas,
java.lang.String gasPrice,
java.lang.String value,
java.lang.String data,
java.lang.String nonce) |
java.lang.String |
eth_sign(java.lang.String address,
java.lang.String messageHash)
Sign message hash with key to produce Elliptic Curve Digital Signature (ECDSA) signature.
|
boolean |
eth_submitHashrate(java.lang.String hashrate,
java.lang.String id) |
boolean |
eth_submitWork(java.lang.String nonceHex,
java.lang.String headerHex,
java.lang.String digestHex) |
java.lang.Object |
eth_syncing() |
boolean |
eth_uninstallFilter(java.lang.String id) |
TransactionReceiptDTOExt |
ethj_getTransactionReceipt(java.lang.String transactionHash) |
java.lang.String[] |
ethj_listAvailableMethods()
List method names for client side terminal competition.
|
protected JsonRpc.BlockResult |
getBlockResult(org.ethereum.core.Block block,
boolean fullTx) |
protected void |
validateAndSubmit(org.ethereum.core.Transaction tx) |
java.lang.String |
web3_clientVersion() |
java.lang.String |
web3_sha3(java.lang.String data) |
public EthJsonRpcImpl(org.ethereum.util.blockchain.StandaloneBlockchain standaloneBlockchain)
public void addAccount(java.lang.String address,
org.ethereum.crypto.ECKey pair)
public java.lang.String web3_clientVersion()
web3_clientVersion in interface JsonRpcpublic java.lang.String web3_sha3(java.lang.String data)
throws java.lang.Exception
public java.lang.String eth_protocolVersion()
eth_protocolVersion in interface JsonRpcpublic java.lang.Object eth_syncing()
eth_syncing in interface JsonRpcpublic java.lang.String eth_coinbase()
eth_coinbase in interface JsonRpcpublic boolean eth_mining()
eth_mining in interface JsonRpcpublic java.lang.String eth_hashrate()
eth_hashrate in interface JsonRpcpublic java.lang.String eth_gasPrice()
eth_gasPrice in interface JsonRpcpublic java.lang.String[] eth_accounts()
eth_accounts in interface JsonRpcpublic java.lang.String eth_blockNumber()
eth_blockNumber in interface JsonRpcpublic java.lang.String eth_getBalance(java.lang.String address,
java.lang.String blockId)
throws java.lang.Exception
eth_getBalance in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getLastBalance(java.lang.String address)
throws java.lang.Exception
eth_getLastBalance in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getStorageAt(java.lang.String address,
java.lang.String storageIdx,
java.lang.String blockId)
throws java.lang.Exception
eth_getStorageAt in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getTransactionCount(java.lang.String address,
java.lang.String blockId)
throws java.lang.Exception
eth_getTransactionCount in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getBlockTransactionCountByHash(java.lang.String blockHash)
throws java.lang.Exception
eth_getBlockTransactionCountByHash in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getBlockTransactionCountByNumber(java.lang.String bnOrId)
throws java.lang.Exception
eth_getBlockTransactionCountByNumber in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getUncleCountByBlockHash(java.lang.String blockHash)
throws java.lang.Exception
eth_getUncleCountByBlockHash in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getUncleCountByBlockNumber(java.lang.String bnOrId)
throws java.lang.Exception
eth_getUncleCountByBlockNumber in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_getCode(java.lang.String address,
java.lang.String blockId)
throws java.lang.Exception
eth_getCode in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_sign(java.lang.String address,
java.lang.String messageHash)
throws java.lang.Exception
public java.lang.String eth_sendTransaction(JsonRpc.CallArguments args) throws java.lang.Exception
eth_sendTransaction in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_sendTransactionArgs(java.lang.String from,
java.lang.String to,
java.lang.String gas,
java.lang.String gasPrice,
java.lang.String value,
java.lang.String data,
java.lang.String nonce)
throws java.lang.Exception
eth_sendTransactionArgs in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_sendRawTransaction(java.lang.String rawData)
throws java.lang.Exception
eth_sendRawTransaction in interface JsonRpcjava.lang.Exceptionprotected void validateAndSubmit(org.ethereum.core.Transaction tx)
protected org.ethereum.core.TransactionReceipt createCallTxAndExecute(JsonRpc.CallArguments args, org.ethereum.core.Block block) throws java.lang.Exception
java.lang.Exceptionprotected org.ethereum.core.TransactionReceipt createCallTxAndExecute(JsonRpc.CallArguments args, org.ethereum.core.Block block, org.ethereum.core.Repository repository, org.ethereum.db.BlockStore blockStore) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String eth_call(JsonRpc.CallArguments args, java.lang.String bnOrId) throws java.lang.Exception
public java.lang.String eth_estimateGas(JsonRpc.CallArguments args) throws java.lang.Exception
eth_estimateGas in interface JsonRpcjava.lang.Exceptionprotected JsonRpc.BlockResult getBlockResult(org.ethereum.core.Block block, boolean fullTx)
public JsonRpc.BlockResult eth_getBlockByHash(java.lang.String blockHash, java.lang.Boolean fullTransactionObjects) throws java.lang.Exception
eth_getBlockByHash in interface JsonRpcjava.lang.Exceptionpublic JsonRpc.BlockResult eth_getBlockByNumber(java.lang.String bnOrId, java.lang.Boolean fullTransactionObjects) throws java.lang.Exception
eth_getBlockByNumber in interface JsonRpcjava.lang.Exceptionpublic TransactionResultDTO eth_getTransactionByHash(java.lang.String transactionHash) throws java.lang.Exception
eth_getTransactionByHash in interface JsonRpcjava.lang.Exceptionpublic TransactionResultDTO eth_getTransactionByBlockHashAndIndex(java.lang.String blockHash, java.lang.String index) throws java.lang.Exception
eth_getTransactionByBlockHashAndIndex in interface JsonRpcjava.lang.Exceptionpublic TransactionResultDTO eth_getTransactionByBlockNumberAndIndex(java.lang.String bnOrId, java.lang.String index) throws java.lang.Exception
eth_getTransactionByBlockNumberAndIndex in interface JsonRpcjava.lang.Exceptionpublic TransactionReceiptDTO eth_getTransactionReceipt(java.lang.String transactionHash) throws java.lang.Exception
eth_getTransactionReceipt in interface JsonRpcjava.lang.Exceptionpublic TransactionReceiptDTOExt ethj_getTransactionReceipt(java.lang.String transactionHash) throws java.lang.Exception
ethj_getTransactionReceipt in interface JsonRpcjava.lang.Exceptionpublic JsonRpc.BlockResult eth_getUncleByBlockHashAndIndex(java.lang.String blockHash, java.lang.String uncleIdx) throws java.lang.Exception
eth_getUncleByBlockHashAndIndex in interface JsonRpcjava.lang.Exceptionpublic JsonRpc.BlockResult eth_getUncleByBlockNumberAndIndex(java.lang.String blockId, java.lang.String uncleIdx) throws java.lang.Exception
eth_getUncleByBlockNumberAndIndex in interface JsonRpcjava.lang.Exceptionpublic java.lang.String[] eth_getCompilers()
eth_getCompilers in interface JsonRpcpublic JsonRpc.CompilationResult eth_compileSolidity(java.lang.String contract) throws java.lang.Exception
eth_compileSolidity in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_newFilter(JsonRpc.FilterRequest fr) throws java.lang.Exception
eth_newFilter in interface JsonRpcjava.lang.Exceptionpublic java.lang.String eth_newBlockFilter()
eth_newBlockFilter in interface JsonRpcpublic java.lang.String eth_newPendingTransactionFilter()
eth_newPendingTransactionFilter in interface JsonRpcpublic boolean eth_uninstallFilter(java.lang.String id)
eth_uninstallFilter in interface JsonRpcpublic java.lang.Object[] eth_getFilterChanges(java.lang.String id)
eth_getFilterChanges in interface JsonRpcpublic java.lang.Object[] eth_getFilterLogs(java.lang.String id)
eth_getFilterLogs in interface JsonRpcpublic java.lang.Object[] eth_getLogs(JsonRpc.FilterRequest filterRequest) throws java.lang.Exception
eth_getLogs in interface JsonRpcjava.lang.Exceptionpublic boolean eth_submitWork(java.lang.String nonceHex,
java.lang.String headerHex,
java.lang.String digestHex)
throws java.lang.Exception
eth_submitWork in interface JsonRpcjava.lang.Exceptionpublic boolean eth_submitHashrate(java.lang.String hashrate,
java.lang.String id)
eth_submitHashrate in interface JsonRpcpublic java.lang.String[] ethj_listAvailableMethods()
ethj_listAvailableMethods in interface JsonRpc