NodeService class Null safety
The node slice is responsible for orchestrating the other slices to keep the blockchain locally, persist blocks and syncing with remote backup and other blockchains in the network.
Constructors
Properties
- address → String
-
read-only
- backupService ← BackupService
-
write-only
- blockInterval ← Duration
-
write-only
- blockService ← BlockService
-
write-only
- database → Database
-
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- maxTransactions ← int
-
write-only
- primaryKey ← KeyModel
-
write-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- transactionService ← TransactionService
-
write-only
Methods
-
getBlock(
Uint8List id) → Uint8List? -
Gets a serialized block by its
id
. -
init(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
startBlockTimer(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
-
write(
Uint8List contents) → Future< TransactionModel> -
Creates a
TransactionModel
with thecontents
and save to local database.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited