TikiSyncChain class

Constructors

TikiSyncChain({Httpp? httpp, required Database database, TikiKv? kv, String s3Bucket = 'tiki-sync-chain', Future<void> refresh(void onSuccess(String?)?)?, String? accessToken()?, required Uint8List sign(Uint8List message), Amplitude? amplitude})

Properties

amplitude ↔ Amplitude?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBlock({required Uint8List hash, String? version, void onSuccess(TikiSyncChainBlock)?, void onError(Object)?}) → void
getBlocks({void onSuccess(TikiSyncChainBlock)?, void onError(Object)?}) → void
getState(List<Uint8List> hashes) Future<List<DBModel>>
init({String? address, String? publicKey, void onError(Object)?}) Future<TikiSyncChain>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syncBlock({String? accessToken, required Uint8List hash, required TikiSyncChainBlock block, void onSuccess(TikiSyncChainBlock)?, void onError(Object)?}) → void
toString() String
A string representation of this object.
inherited

Operators

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