| Modifier and Type | Method and Description |
|---|---|
byte[] |
getPublicKey()
Returns the public key of this node.
|
void |
submitTransaction(Transaction transaction)
Submits a transaction into Exonum network.
|
<ResultT> ResultT |
withSnapshot(java.util.function.Function<Snapshot,ResultT> snapshotFunction)
Performs a given function with a snapshot of the current database state.
|
void submitTransaction(Transaction transaction) throws InvalidTransactionException, InternalServerError
transaction - a transaction to sendInvalidTransactionException - if the transaction is not validInternalServerError - if this node failed to process the transactionjava.lang.NullPointerException - if the transaction is null<ResultT> ResultT withSnapshot(java.util.function.Function<Snapshot,ResultT> snapshotFunction)
ResultT - a type the function returnssnapshotFunction - a function to executebyte[] getPublicKey()
java.lang.IllegalStateException - if the node proxy is closedCopyright © 2018 Exonum. All rights reserved.