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

NodeService()

Properties

address → String
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getBlock(Uint8List id) → Uint8List?
Gets a serialized block by its id.
init(Database database, KeyStorage keyStorage, L0Storage l0storage, {String? primary, List<String> readOnly = const [], int maxTransactions = 200, Duration blockInterval = const Duration(minutes: 1)}) → Future<NodeService>
Initialize the service
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(Uint8List contents) → Future<TransactionModel>
Creates a TransactionModel with the contents and save to local database.

Operators

operator ==(Object other) → bool
The equality operator.
inherited