Static
isStatic
toStatic
Readonly
VoteGet the blocks for this staple
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.
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.
Get the votes for this staple
Get the timestamp of the staple
This is the average of the timestamps of the votes, unless a particular account is specified then that timestamp is used if it issued a vote in the staple.
Optional
preferRep: Account<ECDSA_SECP256K1 | ED25519 | ECDSA_SECP256R1>Get the serialized version
Optional
uncompressed: booleanGet the serialized version as JSON
Static
fromStatic
fromConstruct a new staple from votes and blocks
Static
fromStatic
fromConvert 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
Static
isStatic
to
Construct a new staple from a message buffer