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

    A vote is a certificate issued indicating that the issuer "vouches" for the blocks specified will fit into the ledger of the operator/issuer.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • vote:
            | string
            | Buffer
            | ArrayBuffer
            | VoteJSON
            | Vote
            | PossiblyExpiredVote
            | {
                $binary?: string;
                $id: string;
                $permanent: boolean;
                $trusted: boolean;
                $uid: string;
                blocks: BlockHashString[];
                issuer: | Secp256K1PublicKeyString
                | Secp256R1PublicKeyString
                | ED25519PublicKeyString;
                serial: string;
                signature: string;
                validityFrom: string;
                validityTo: string;
            }
      • options: VoteOptions = {}

      Returns Vote

    Properties

    $id: string
    $permanent: boolean = false
    $trusted: boolean = false
    $uid: string
    blocks: BlockHash[]
    issuer: Account
    possiblyExpired: false
    serial: bigint
    signature: ArrayBuffer
    validityFrom: Date
    validityTo: Date
    allowedSlop: number = ...
    Builder: typeof VoteBuilder
    isInstance: (obj: any, strict?: boolean) => obj is Vote = ...
    permanentVoteThreshold: number = ...
    Staple: typeof VoteStaple
    VoteBlocksHash: typeof VoteBlockHash = VoteBlockHash

    Accessors

    • get expired(): boolean

      Returns boolean

    Methods

    • Parameters

      • voteJSON:
            | VoteJSON
            | {
                $binary?: string;
                $id: string;
                $permanent: boolean;
                $trusted: boolean;
                $uid: string;
                blocks: BlockHashString[];
                issuer: | Secp256K1PublicKeyString
                | Secp256R1PublicKeyString
                | ED25519PublicKeyString;
                serial: string;
                signature: string;
                validityFrom: string;
                validityTo: string;
            }

      Returns voteJSON is
          | VoteJSON
          | {
              $binary?: string;
              $id: string;
              $permanent: boolean;
              $trusted: boolean;
              $uid: string;
              blocks: BlockHashString[];
              issuer: | Secp256K1PublicKeyString
              | Secp256R1PublicKeyString
              | ED25519PublicKeyString;
              serial: string;
              signature: string;
              validityFrom: string;
              validityTo: string;
          }