public interface IProxyApi
| Modifier and Type | Method and Description |
|---|---|
Optional<BlockProxy> |
block(long blockNo)
Returns information about a block by block number
eth_getBlockByNumber
|
long |
blockNoLast()
Returns the number of most recent block
eth_blockNumber
|
Optional<BlockProxy> |
blockUncle(long blockNo,
long index)
Returns information about a uncle by block number
eth_getUncleByBlockNumberAndIndex
|
Optional<String> |
call(String address,
String data)
Executes a new message call immediately without creating a transaction on the block chain
eth_call
|
Optional<String> |
code(String address)
Returns code at a given address
eth_getCode
|
BigInteger |
gasEstimated() |
BigInteger |
gasEstimated(String hexData)
Makes a call or transaction, which won't be added to the blockchain and returns the used gas,
which can be used for estimating the used gas
eth_estimateGas
|
BigInteger |
gasPrice()
Returns the current price per gas in wei
eth_gasPrice
|
Optional<String> |
storageAt(String address,
long position)
(**experimental)
Returns the value from a storage position at a given address
eth_getStorageAt
|
Optional<TxProxy> |
tx(long blockNo,
long index)
Returns information about a transaction by block number and transaction index position
eth_getTransactionByBlockNumberAndIndex
|
Optional<TxProxy> |
tx(String txhash)
Returns the information about a transaction requested by transaction hash
eth_getTransactionByHash
|
int |
txCount(long blockNo)
Returns the number of transactions in a block from a block matching the given block number
eth_getBlockTransactionCountByNumber
|
Optional<ReceiptProxy> |
txReceipt(String txhash)
Returns the receipt of a transaction by transaction hash
eth_getTransactionReceipt
|
int |
txSendCount(String address)
Returns the number of transactions sent from an address
eth_getTransactionCount
|
Optional<String> |
txSendRaw(String hexEncodedTx)
Creates new message call transaction or a contract creation for signed transactions
eth_sendRawTransaction
|
long blockNoLast()
ApiException - parent exception class@NotNull Optional<BlockProxy> block(long blockNo) throws ApiException
blockNo - block number from 0 to lastApiException - parent exception class@NotNull Optional<BlockProxy> blockUncle(long blockNo, long index) throws ApiException
blockNo - block number from 0 to lastindex - uncle block indexApiException - parent exception class@NotNull Optional<TxProxy> tx(String txhash) throws ApiException
txhash - transaction hashApiException - parent exception class@NotNull Optional<TxProxy> tx(long blockNo, long index) throws ApiException
blockNo - block number from 0 to lastindex - tx index in blockApiException - parent exception classint txCount(long blockNo)
throws ApiException
blockNo - block number from 0 to lastApiException - parent exception classint txSendCount(String address) throws ApiException
address - eth addressApiException - parent exception class@NotNull Optional<String> txSendRaw(String hexEncodedTx) throws ApiException
hexEncodedTx - encoded hex data to sendApiException - parent exception class@NotNull Optional<ReceiptProxy> txReceipt(String txhash) throws ApiException
txhash - transaction hashApiException - parent exception class@NotNull Optional<String> call(String address, String data) throws ApiException
address - to calldata - data to call addressApiException - parent exception class@NotNull Optional<String> code(String address) throws ApiException
address - get code fromApiException - parent exception class@NotNull Optional<String> storageAt(String address, long position) throws ApiException
address - to get storageposition - storage positionApiException - parent exception class@NotNull BigInteger gasPrice() throws ApiException
ApiException - parent exception class@NotNull BigInteger gasEstimated(String hexData) throws ApiException
hexData - data to calc gas usage forApiException - parent exception class@NotNull BigInteger gasEstimated() throws ApiException
ApiExceptionCopyright © 2019. All rights reserved.