Serializablepublic class Transaction extends Object implements Serializable
| Constructor | Description |
|---|---|
Transaction() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addInput(Input input) |
Adds the input.
|
void |
addOutput(Output output) |
Adds the output.
|
Asset |
getAsset() |
Gets the asset.
|
String |
getId() |
Gets the id.
|
List<Input> |
getInputs() |
Gets the inputs.
|
Object |
getMetaData() |
Gets the meta data.
|
String |
getOperation() |
Gets the operation.
|
List<Output> |
getOutputs() |
Gets the outputs.
|
Boolean |
getSigned() |
Gets the signed.
|
String |
getVersion() |
Gets the version.
|
void |
setAsset(Asset asset) |
Sets the asset.
|
void |
setId(String id) |
Sets the id.
|
void |
setMetaData(Object obj) |
Set the metaData object
|
void |
setOperation(String operation) |
Sets the operation.
|
void |
setSigned(Boolean signed) |
Sets the signed.
|
void |
setVersion(String version) |
Sets the version.
|
String |
toHashInput() |
Return the transaction suitable for hashing.
|
String |
toString() |
public Boolean getSigned()
public void setSigned(Boolean signed)
signed - the new signedpublic Asset getAsset()
public void setAsset(Asset asset)
asset - the new assetpublic String getId()
public void setId(String id)
id - the new idpublic Object getMetaData()
public void setMetaData(Object obj)
obj - the metadata objectpublic String getOperation()
public void setOperation(String operation)
operation - the new operationpublic String getVersion()
public void setVersion(String version)
version - the new versionpublic void addInput(Input input)
input - the inputpublic void addOutput(Output output)
output - the outputpublic String toHashInput()
Copyright © 2018. All rights reserved.