Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...
    Index

    Constructors

    Properties

    isInstance: (obj: any, strict?: boolean) => obj is VoteStaple = ...
    toJSONSerializablePrefix: string = 'VOTESTAPLE'
    VoteBlockHash: typeof VoteBlockHash = VoteBlockHash

    Accessors

    • get blocks(): Block[]

      Get the blocks for this staple

      Returns Block[]

    • get blocksHash(): VoteBlockHash

      Get the hash of the blockhashes in the staple -- this is a stable ID for the staple regardless of which votes are included in the staple.

      Returns VoteBlockHash

    • get hash(): VoteStapleHash

      Hash of the Vote Staple -- this is the hash of the data in the canonical form of the staple, which may be different from the hash of the data passed into the this object.

      Returns VoteStapleHash

    • get votes(): Vote[]

      Get the votes for this staple

      Returns Vote[]

    Methods

    • Get the serialized version

      Parameters

      • Optionaluncompressed: boolean

      Returns ArrayBuffer

    • Returns string

    • Convert a list of Votes and Blocks into a VoteStaple This is slightly different from VoteStaple.fromVotesAndBlocks in that it will filter the supplied votes to only include those that are permanent if any permanent votes are present, otherwise only temporary votes will be included

      Additionally, it will filter out any votes that are expired

      Parameters

      Returns null | VoteStaple