public class EosioJavaRpcProviderImpl
extends java.lang.Object
implements one.block.eosiojava.interfaces.IRPCProvider
| Constructor and Description |
|---|
EosioJavaRpcProviderImpl(@NotNull java.lang.String baseURL)
Construct a new RPC provider instance given the base URL to use for building requests.
|
EosioJavaRpcProviderImpl(@NotNull java.lang.String baseURL,
boolean enableDebug)
Construct a new RPC provider instance given the base URL to use for building requests.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getAbi(okhttp3.RequestBody requestBody)
Issue a getAbi() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getAccount(okhttp3.RequestBody requestBody)
Issue a get_account call to the blockchain and process the response.
|
@NotNull java.lang.String |
getActions(okhttp3.RequestBody requestBody)
Issue a getActions() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.GetBlockResponse |
getBlock(one.block.eosiojava.models.rpcProvider.request.GetBlockRequest getBlockRequest)
Issue a getBlock() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getBlockHeaderState(okhttp3.RequestBody requestBody)
Issue a getBlockHeaderState() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.GetBlockInfoResponse |
getBlockInfo(one.block.eosiojava.models.rpcProvider.request.GetBlockInfoRequest getBlockInfoRequest)
Issue a getBlockInfo() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getCode(okhttp3.RequestBody requestBody)
Issue a getCode() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getControlledAccounts(okhttp3.RequestBody requestBody)
Issue a getControlledAccounts() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getCurrencyBalance(okhttp3.RequestBody requestBody)
Issue a getCurrencyBalance call to the blockchain and process the response.
|
@NotNull java.lang.String |
getCurrencyStats(okhttp3.RequestBody requestBody)
Issue a getCurrencyStats() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.GetInfoResponse |
getInfo()
Issue a getInfo() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getKeyAccounts(okhttp3.RequestBody requestBody)
Issue a getKeyAccounts() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getKvTableRows(okhttp3.RequestBody requestBody)
Issue a getKvTableRows() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getProducers(okhttp3.RequestBody requestBody)
Issue a getProducers() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.GetRawAbiResponse |
getRawAbi(one.block.eosiojava.models.rpcProvider.request.GetRawAbiRequest getRawAbiRequest)
Issue a getRawAbi() request to the blockchain and process the response.
|
@NotNull java.lang.String |
getRawCodeAndAbi(okhttp3.RequestBody requestBody)
Issue a getRawCodeAndAbi() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.GetRequiredKeysResponse |
getRequiredKeys(one.block.eosiojava.models.rpcProvider.request.GetRequiredKeysRequest getRequiredKeysRequest)
Issue a getRequiredKeys() request to the blockchain and process the response.
|
@NotNull java.lang.String |
getTableByScope(okhttp3.RequestBody requestBody)
Issue a getTableByScope() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getTableRows(okhttp3.RequestBody requestBody)
Issue a getTableRows() call to the blockchain and process the response.
|
@NotNull java.lang.String |
getTransaction(okhttp3.RequestBody requestBody)
Issue a getTransaction() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.PushTransactionResponse |
pushTransaction(one.block.eosiojava.models.rpcProvider.request.PushTransactionRequest pushTransactionRequest)
Push a given transaction to the blockchain and process the response.
|
@NotNull java.lang.String |
pushTransactions(okhttp3.RequestBody requestBody)
Issue a pushTransactions() call to the blockchain and process the response.
|
@NotNull one.block.eosiojava.models.rpcProvider.response.SendTransactionResponse |
sendTransaction(one.block.eosiojava.models.rpcProvider.request.SendTransactionRequest sendTransactionRequest)
Send a given transaction to the blockchain and process the response.
|
public EosioJavaRpcProviderImpl(@NotNull
@NotNull java.lang.String baseURL)
throws EosioJavaRpcProviderInitializerError
baseURL - Base URL to use for building requests.EosioJavaRpcProviderInitializerError - thrown if the base URL passed in is null.public EosioJavaRpcProviderImpl(@NotNull
@NotNull java.lang.String baseURL,
boolean enableDebug)
throws EosioJavaRpcProviderInitializerError
baseURL - Base URL to use for building requests.enableDebug - Enable Network Log at HttpLoggingInterceptor.Level.BODY levelEosioJavaRpcProviderInitializerError - thrown if the base URL passed in is null.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.GetInfoResponse getInfo()
throws one.block.eosiojava.error.rpcProvider.GetInfoRpcError
getInfo in interface one.block.eosiojava.interfaces.IRPCProviderone.block.eosiojava.error.rpcProvider.GetInfoRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.GetBlockResponse getBlock(one.block.eosiojava.models.rpcProvider.request.GetBlockRequest getBlockRequest)
throws one.block.eosiojava.error.rpcProvider.GetBlockRpcError
getBlockRequest - Info about a specific block.one.block.eosiojava.error.rpcProvider.GetBlockRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.GetBlockInfoResponse getBlockInfo(one.block.eosiojava.models.rpcProvider.request.GetBlockInfoRequest getBlockInfoRequest)
throws one.block.eosiojava.error.rpcProvider.GetBlockInfoRpcError
getBlockInfo in interface one.block.eosiojava.interfaces.IRPCProvidergetBlockInfoRequest - Info about a specific block.one.block.eosiojava.error.rpcProvider.GetBlockInfoRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.GetRawAbiResponse getRawAbi(one.block.eosiojava.models.rpcProvider.request.GetRawAbiRequest getRawAbiRequest)
throws one.block.eosiojava.error.rpcProvider.GetRawAbiRpcError
getRawAbi in interface one.block.eosiojava.interfaces.IRPCProvidergetRawAbiRequest - Info about a specific smart contract.one.block.eosiojava.error.rpcProvider.GetRawAbiRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.GetRequiredKeysResponse getRequiredKeys(one.block.eosiojava.models.rpcProvider.request.GetRequiredKeysRequest getRequiredKeysRequest)
throws one.block.eosiojava.error.rpcProvider.GetRequiredKeysRpcError
getRequiredKeys in interface one.block.eosiojava.interfaces.IRPCProvidergetRequiredKeysRequest - Info to get required keysone.block.eosiojava.error.rpcProvider.GetRequiredKeysRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.PushTransactionResponse pushTransaction(one.block.eosiojava.models.rpcProvider.request.PushTransactionRequest pushTransactionRequest)
throws one.block.eosiojava.error.rpcProvider.PushTransactionRpcError
pushTransactionRequest - the transaction to push with signatures.one.block.eosiojava.error.rpcProvider.PushTransactionRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull one.block.eosiojava.models.rpcProvider.response.SendTransactionResponse sendTransaction(one.block.eosiojava.models.rpcProvider.request.SendTransactionRequest sendTransactionRequest)
throws one.block.eosiojava.error.rpcProvider.SendTransactionRpcError
sendTransaction in interface one.block.eosiojava.interfaces.IRPCProvidersendTransactionRequest - the transaction to send with signatures.one.block.eosiojava.error.rpcProvider.SendTransactionRpcError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getAccount(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_account APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String pushTransactions(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of push_transactions APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getBlockHeaderState(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_block_header_state APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getAbi(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_abi APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getCurrencyBalance(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_currency_balance APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getCurrencyStats(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_currency_stats APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getProducers(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_producers APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getRawCodeAndAbi(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_raw_code_and_abi APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getTableByScope(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_table_by_scope APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getTableRows(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_table_rows APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getKvTableRows(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_kv_table_rows APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getCode(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_code APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getActions(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_actions APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getTransaction(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_transaction APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getKeyAccounts(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_key_accounts APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.@NotNull
public @NotNull java.lang.String getControlledAccounts(okhttp3.RequestBody requestBody)
throws one.block.eosiojava.error.rpcProvider.RpcProviderError
requestBody - request body of get_controlled_accounts APIone.block.eosiojava.error.rpcProvider.RpcProviderError - Thrown if any errors occur calling or processing the request.