AnchorTransactionDetail

AnchorTransactionDetail

new AnchorTransactionDetail()

Version:
  • 1.0

The AnchorTransactionDetail model module.

Members

payload :Object.<String, Object>

Anchor data. ID is set to SHA256 (payload) by default if an ID is not provided. It receives a string-type ID value and determines that it is not set if it is not a string type.

Type:
  • Object.<String, Object>

transactionHash :String

Transaction hash of anchoring transaction

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {AnchorTransactionDetail}

Constructs a AnchorTransactionDetail from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj AnchorTransactionDetail

Optional instance to populate.

Returns:

The populated AnchorTransactionDetail instance.

Type
AnchorTransactionDetail

AnchorTransactionDetail

new AnchorTransactionDetail(payload, transactionHash)

Constructs a new AnchorTransactionDetail. Anchoring transaction information

Parameters:
Name Type Description
payload Object.<String, Object>

Anchor data. ID is set to SHA256 (payload) by default if an ID is not provided. It receives a string-type ID value and determines that it is not set if it is not a string type.

transactionHash String

Transaction hash of anchoring transaction

Members

payload :Object.<String, Object>

Anchor data. ID is set to SHA256 (payload) by default if an ID is not provided. It receives a string-type ID value and determines that it is not set if it is not a string type.

Type:
  • Object.<String, Object>

transactionHash :String

Transaction hash of anchoring transaction

Type:
  • String

Methods

(static) constructFromObject(data, obj) → {AnchorTransactionDetail}

Constructs a AnchorTransactionDetail from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj AnchorTransactionDetail

Optional instance to populate.

Returns:

The populated AnchorTransactionDetail instance.

Type
AnchorTransactionDetail