BlockchainAdapterFactory class
Provides a properly configured BlockchainAdapter for the requirested network. Instances are cached and should be reused because they often cache invariant blockchain data allowing for faster updates.
Constructors
- BlockchainAdapterFactory({required Interceptor authInterceptor, required NetworkId networkId, required String projectId})
- BlockchainAdapterFactory.fromKey({required String key, required NetworkId networkId})
-
factory
Properties
- authInterceptor → Interceptor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
final
- networkId → NetworkId
-
final
- projectId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
adapter(
) → BlockchainAdapter - return cached BlockchainAdapter instance.
-
clear(
) → void - clear cached instances
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
interceptorFromKey(
{required String key}) → Interceptor - creates an interceptor give a key