Skip to main content

@bloock/sdk / AnchorNetwork

Class: AnchorNetwork

Represents information about an anchor network.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AnchorNetwork(name, state, txHash, root?): AnchorNetwork

Constructs an AnchorNetwork object with the specified parameters.

Parameters

NameType
namestring
statestring
txHashstring
root?string

Returns

AnchorNetwork

Defined in

entity/integrity/anchor_network.ts:19

Properties

name

name: string

Defined in

entity/integrity/anchor_network.ts:7


root

Optional root: string

Defined in

entity/integrity/anchor_network.ts:10


state

state: string

Defined in

entity/integrity/anchor_network.ts:8


txHash

txHash: string

Defined in

entity/integrity/anchor_network.ts:9

Methods

toProto

toProto(): AnchorNetwork

Returns

AnchorNetwork

Defined in

entity/integrity/anchor_network.ts:30


fromProto

fromProto(a): AnchorNetwork

Parameters

NameType
aAnchorNetwork

Returns

AnchorNetwork

Defined in

entity/integrity/anchor_network.ts:26