Block class
Block
Constructors
Properties
- bits ↔ int
-
Bits
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- merkleRoot ↔ Uint8List?
-
Merkle Root
getter/setter pair
- nonce ↔ int
-
Nonce
getter/setter pair
- prevHash ↔ Uint8List?
-
Previous Block Hash
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp ↔ int
-
Timestamp
getter/setter pair
-
transactions
↔ List<
Transaction> -
Transaction List
getter/setter pair
- version ↔ int
-
Version
getter/setter pair
- witnessCommit ↔ Uint8List?
-
Witness Commit
getter/setter pair
Methods
-
byteLength(
[bool headersOnly = false, bool allowWitness = true]) → int - Get Block Byte Length
-
checkProofOfWork(
) → bool - Check Proof Of Work
-
checkTxRoots(
) → bool - Check Transaction Roots
-
getHash(
) → Uint8List - Get Hash
-
getId(
) → String - Get Block ID
-
getUTCDate(
) → DateTime - Get UTC Date
-
getWitnessCommit(
) → Uint8List? - Get Witness Commit
-
hasWitness(
) → bool - Is Block Has Witness ?
-
hasWitnessCommit(
) → bool - Is Block Has Witness Commit
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBuffer(
[bool headersOnly = false]) → Uint8List - To Uint8List Buffer
-
toHex(
[bool headersOnly = false]) → String - To Hex
-
toString(
) → String -
A string representation of this object.
inherited
-
weight(
) → int - Get Block Weight
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateMerkleRoot(
List< Transaction> transactions, [bool forWitness = false]) → Uint8List - Calculate Merkle Root
-
calculateTarget(
int bits) → Uint8List - Calculate Target