Skip to main content

AnchorNetwork

Represents information about an anchor network.

  • Full name: \Bloock\Entity\Integrity\AnchorNetwork

Properties

name

private string $name

state

private string $state

txHash

private string $txHash

root

private ?string $root

Methods

__construct

Constructs an AnchorNetwork object with the specified parameters.

public __construct(string $name, string $state, string $txHash, string|null $root): mixed

Parameters:

ParameterTypeDescription
$namestring
$statestring
$txHashstring
$rootstring|null

fromProto

public static fromProto(\Bloock\AnchorNetwork $network): \Bloock\Entity\Integrity\AnchorNetwork
  • This method is static.

Parameters:

ParameterTypeDescription
$network\Bloock\AnchorNetwork

getName

Gets name of the anchor network.

public getName(): string

getState

Gets state of the anchor network.

public getState(): string

getTxHash

Gets transaction hash of the anchor network.

public getTxHash(): string

getRoot

Gets root of the anchor network.

public getRoot(): string

toProto

public toProto(): \Bloock\AnchorNetwork


Automatically generated on 2024-04-02