AnchorBlockRequest

AnchorBlockRequest

new AnchorBlockRequest()

Version:
  • 1.0

The AnchorBlockRequest model module.

Members

operator :String

Operator account address

Type:
  • String

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>

Methods

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

Constructs a AnchorBlockRequest 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 AnchorBlockRequest

Optional instance to populate.

Returns:

The populated AnchorBlockRequest instance.

Type
AnchorBlockRequest

AnchorBlockRequest

new AnchorBlockRequest(operator, payload)

Constructs a new AnchorBlockRequest. Anchor block request schema

Parameters:
Name Type Description
operator String

Operator account address

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.

Members

operator :String

Operator account address

Type:
  • String

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>

Methods

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

Constructs a AnchorBlockRequest 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 AnchorBlockRequest

Optional instance to populate.

Returns:

The populated AnchorBlockRequest instance.

Type
AnchorBlockRequest