Skip to main content

@bloock/sdk / Anchor

Class: Anchor

Represents information about an anchor.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Anchor(id, blockRoots, networks, root, status): Anchor

Constructs an Anchor object with the specified parameters.

Parameters

NameType
idnumber
blockRootsstring[]
networksAnchorNetwork[]
rootstring
statusstring

Returns

Anchor

Defined in

entity/integrity/anchor.ts:22

Properties

blockRoots

blockRoots: string[]

Defined in

entity/integrity/anchor.ts:9


id

id: number

Defined in

entity/integrity/anchor.ts:8


networks

networks: AnchorNetwork[]

Defined in

entity/integrity/anchor.ts:10


root

root: string

Defined in

entity/integrity/anchor.ts:11


status

status: string

Defined in

entity/integrity/anchor.ts:12

Methods

fromProto

fromProto(a): Anchor

Parameters

NameType
aAnchor

Returns

Anchor

Defined in

entity/integrity/anchor.ts:36