@FunctionalInterface public interface TransactionConverter
TransactionMessage| Modifier and Type | Method and Description |
|---|---|
Transaction |
toTransaction(int txId,
byte[] arguments)
Converts a transaction type id and serialized transaction arguments to an executable
transaction of some service.
|
Transaction toTransaction(int txId, byte[] arguments)
txId - the transaction type identifier
within the servicearguments - the serialized transaction
argumentsIllegalArgumentException - if the transaction is not known to the service,
or the arguments are not valid: e.g., cannot be deserialized, or do not meet
the preconditionsCopyright © 2019 Exonum. All rights reserved.