public class HttpProvider
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
HttpProvider.BalanceResult |
static class |
HttpProvider.ContractResult |
static class |
HttpProvider.CreateTxResult |
| 构造器和说明 |
|---|
HttpProvider(java.lang.String url) |
HttpProvider(java.lang.String url,
okhttp3.OkHttpClient client) |
public HttpProvider(java.lang.String url)
public HttpProvider(java.lang.String url,
okhttp3.OkHttpClient client)
public Rep<java.lang.String> getNetworkId() throws java.io.IOException
java.io.IOExceptionpublic Rep<BlockchainInfo> getBlockchainInfo() throws java.io.IOException
java.io.IOExceptionpublic Rep<ShardingStructure> getShardingStructure() throws java.io.IOException
java.io.IOExceptionpublic Rep<BlockList> getDSBlockListing(int pageNumber) throws java.io.IOException
java.io.IOExceptionpublic Rep<BlockList> getTxBlockListing(int pageNumber) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getNumDSBlocks() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.Double> getDSBlockRate() throws java.io.IOException
java.io.IOExceptionpublic Rep<BlockList> getDSBlockListing() throws java.io.IOException
java.io.IOExceptionpublic Rep<DsBlock> getDsBlock(java.lang.String blockNumber) throws java.io.IOException
java.io.IOExceptionpublic Rep<TxBlock> getTxBlock(java.lang.String blockNumber) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getNumTxBlocks() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.Double> getTxBlockRate() throws java.io.IOException
java.io.IOExceptionpublic Rep<DsBlock> getLatestDsBlock() throws java.io.IOException
java.io.IOExceptionpublic Rep<TxBlock> getLatestTxBlock() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getNumTransactions() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.Integer> getTransactionRate() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getCurrentMiniEpoch() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getCurrentDSEpoch() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.Integer> getPrevDifficulty() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.Integer> getPrevDSDifficulty() throws java.io.IOException
java.io.IOExceptionpublic Rep<HttpProvider.BalanceResult> getBalance(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<HttpProvider.BalanceResult> getBalance32(java.lang.String address) throws java.lang.Exception
java.lang.Exceptionpublic Rep<HttpProvider.ContractResult> getSmartContractCode(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.util.List<Contract>> getSmartContracts(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getContractAddressFromTransactionID(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.util.List<Contract.State>> getSmartContractState(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.util.List<Contract.State>> getSmartContractInit(java.lang.String address) throws java.io.IOException
java.io.IOExceptionpublic Rep<HttpProvider.CreateTxResult> createTransaction(TransactionPayload payload) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getMinimumGasPrice() throws java.io.IOException
java.io.IOExceptionpublic Rep<Transaction> getTransaction(java.lang.String hash) throws java.io.IOException
java.io.IOExceptionpublic Rep<Transaction> getTransaction32(java.lang.String hash) throws java.lang.Exception
java.lang.Exceptionpublic Rep<TransactionList> getRecentTransactions() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.util.List<java.util.List<java.lang.String>>> getTransactionsForTxBlock(java.lang.String blockNum) throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getNumTxnsTxEpoch() throws java.io.IOException
java.io.IOExceptionpublic Rep<java.lang.String> getNumTxnsDSEpoch() throws java.io.IOException
java.io.IOException