public interface IRPCProvider
Modifier and Type | Method and Description |
---|---|
@NotNull GetBlockResponse |
getBlock(GetBlockRequest getBlockRequest)
Returns an object containing various details about a specific block on the blockchain.
|
@NotNull GetInfoResponse |
getInfo()
Returns an object containing various details about the blockchain.
|
@NotNull GetRawAbiResponse |
getRawAbi(GetRawAbiRequest getRawAbiRequest)
Gets raw abi for a given contract.
|
@NotNull GetRequiredKeysResponse |
getRequiredKeys(GetRequiredKeysRequest getRequiredKeysRequest)
Returns the required keys needed to sign a transaction.
|
@NotNull PushTransactionResponse |
pushTransaction(PushTransactionRequest pushTransactionRequest)
This method expects a transaction in JSON format and will attempt to apply it to the blockchain.
|
@NotNull @NotNull GetInfoResponse getInfo() throws GetInfoRpcError
GetInfoRpcError
- thrown if there are any exceptions/backend errors during the
getInfo() process.@NotNull @NotNull GetBlockResponse getBlock(GetBlockRequest getBlockRequest) throws GetBlockRpcError
getBlockRequest
- Info of a specific block.GetBlockRpcError
- thrown if there are any exceptions/backend error during the
getBlock() process.@NotNull @NotNull GetRawAbiResponse getRawAbi(GetRawAbiRequest getRawAbiRequest) throws GetRawAbiRpcError
getRawAbiRequest
- Info of a specific smart contract.GetRawAbiRpcError
- thrown if there are any exceptions/backend error during the
getRawAbi() process.@NotNull @NotNull GetRequiredKeysResponse getRequiredKeys(GetRequiredKeysRequest getRequiredKeysRequest) throws GetRequiredKeysRpcError
getRequiredKeysRequest
- Info to get required keysGetRequiredKeysRpcError
- thrown if there are any exceptions/backend error during the
getRequiredKeys() process.@NotNull @NotNull PushTransactionResponse pushTransaction(PushTransactionRequest pushTransactionRequest) throws PushTransactionRpcError
pushTransactionRequest
- the transaction to push with signatures.PushTransactionRpcError
- thrown if there are any exceptions/backend error during the
pushTransaction() process.