Skip to main content

ProofAnchor

Represents a proof anchor.

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

Properties

anchorId

private int $anchorId

networks

private array $networks

root

private string $root

status

private string $status

Methods

__construct

Constructs a ProofAnchor object with the specified parameters.

public __construct(int $anchorId, array $networks, string $root, string $status): mixed

Parameters:

ParameterTypeDescription
$anchorIdint
$networksarray
$rootstring
$statusstring

fromProto

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

Parameters:

ParameterTypeDescription
$proofAnchor\Bloock\ProofAnchor

getNetworks

Gets the networks of the anchor proof

public getNetworks(): array

getAnchorId

Gets the anchor id of the anchor proof.

public getAnchorId(): int

getRoot

Gets the root of the anchor proof.

public getRoot(): string

getStatus

Gets the status of the anchor proof.

public getStatus(): string

toProto

public toProto(): \Bloock\ProofAnchor


Automatically generated on 2024-04-02