public class TxnRequest extends Object
Constructor and Description |
---|
TxnRequest()
Default constructor
|
TxnRequest(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
TxnRequest |
addOperation(TxnOperation operation)
Adds operation to this request
|
List<TxnOperation> |
getOperations()
Returns list of transaction operations
|
TxnOperation |
getOperations(int index)
Returns the operation at the specified position in this list
|
int |
getOperationsSize()
Returns the number of operations in this request
|
JsonObject |
toJson()
Convert to JSON
|
public TxnRequest()
public TxnRequest(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public List<TxnOperation> getOperations()
public int getOperationsSize()
public TxnOperation getOperations(int index)
index
- index of the operation to returnpublic TxnRequest addOperation(TxnOperation operation)
operation
- operation to addCopyright © 2022 Eclipse. All rights reserved.