Transport class abstract
Abstract class for transport, so we can combine both implementations into single list
- Implementers
Constructors
Properties
- connectionParamsHash ↔ String
-
Get uniquer identifier of transport based on type and endpoints
latefinal
- disposed → bool
-
Flag that means that dispose method was called and all next calls will
throw TransportCallAfterDisposeError except of MutexPoisoned error
or RustToDartCaller.invoke exception.
no setter
- group → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setter
- networkId ↔ int
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transportBox → ArcTransportBoxTrait
-
Used only for creating rust instances.
no setter
- type → TransportType
-
no setter
Methods
-
dispose(
) → void -
getAccountsByCodeHash(
{required String codeHash, required int limit, String? continuation}) → Future< AccountsList> - Get list of accounts by code hash. Returns AccountsList or throw error
-
getBlockchainConfig(
{bool force = true}) → Future< BlockchainConfig> - Get blockchain config or throw error
-
getContractFields(
{required Address address, required String contractAbi, FullContractState? cachedState}) → Future< (Map< String, dynamic> ?, FullContractState?)> -
Get contract fields of
address
and return (Map<String, dynamic>, state) or throw error. This method automatically loads state by calling getFullContractState ifcachedState
is null. -
getContractState(
Address address) → Future< RawContractState> - Get contract state of address and return RawContractState or throw error
-
getDstTransaction(
String messageHash) → Future< RawTransaction?> - Call get_dst_transaction of nekoton's transport and return option RawTransaction or throw error
-
getFullContractState(
Address address) → Future< FullContractState?> - Get full contract state of address and return FullContractState or throw error
-
getNetworkId(
) → Future< int> - Get id of network or throw error
-
getSignatureId(
) → Future< int?> - Get transport signature id and return it or throw error
-
getTransaction(
String hash) → Future< Transaction?> - Get single transaction by its id. Return Transaction if found or throw error
-
getTransactions(
{required Address address, required int count, String? fromLt}) → Future< TransactionsList> - Get list of transactions by address. Return TransactionsList or throw error
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
simulateTransactionTree(
{required SignedMessage signedMessage, required Int32List ignoredComputePhaseCodes, required Int32List ignoredActionPhaseCodes}) → Future< List< TxTreeSimulationErrorItem> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited