@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
| Name | Type |
|---|---|
id | number |
blockRoots | string[] |
networks | AnchorNetwork[] |
root | string |
status | string |
Returns
Defined in
Properties
blockRoots
• blockRoots: string[]
Defined in
id
• id: number
Defined in
networks
• networks: AnchorNetwork[]
Defined in
root
• root: string
Defined in
status
• status: string
Defined in
Methods
fromProto
▸ fromProto(a): Anchor
Parameters
| Name | Type |
|---|---|
a | Anchor |