| Package | Description |
|---|---|
| com.exonum.binding.blockchain | |
| com.exonum.binding.blockchain.serialization |
| Modifier and Type | Method and Description |
|---|---|
static TransactionResult |
TransactionResult.error(int errorCode,
java.lang.String errorDescription)
Creates a transaction result corresponding to a user-defined
exception during transaction execution
(or the corresponding Error in Rust services).
|
static TransactionResult |
TransactionResult.successful()
Returns a transaction result corresponding to successful execution.
|
static TransactionResult |
TransactionResult.unexpectedError(java.lang.String errorDescription)
Creates a transaction result corresponding to an unexpected error during transaction
execution (some unexpected runtime exception in Java, panic in Rust).
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<TransactionResult> |
Blockchain.getTxResult(com.exonum.binding.common.hash.HashCode messageHash)
Returns a transaction execution result for given message hash.
|
ProofMapIndexProxy<com.exonum.binding.common.hash.HashCode,TransactionResult> |
Blockchain.getTxResults()
Returns a map with a key-value pair of a transaction hash and execution result.
|
static com.google.gson.TypeAdapter<TransactionResult> |
TransactionResult.typeAdapter(com.google.gson.Gson gson)
Provides a Gson type adapter for this class.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionResult |
TransactionResultSerializer.fromBytes(byte[] binaryTransactionResult) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
TransactionResultSerializer.toBytes(TransactionResult value) |
Copyright © 2019 Exonum. All rights reserved.