GqlTransport class
Implementation of jrpc transport
Properties
- connectionParamsHash ↔ String
-
Get uniquer identifier of transport based on type and endpoints
latefinalinherited
- 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 setteroverride
- gqlConnection → GqlConnection
-
final
- group → String
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setteroverride
- networkId ↔ int
-
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transport ↔ GqlTransportImpl
-
getter/setter pair
- transportBox → ArcTransportBoxTrait
-
Used only for creating rust instances.
no setteroverride
- type → TransportType
-
no setteroverride
Methods
-
dispose(
) → void -
override
-
getAccountsByCodeHash(
{required String codeHash, required int limit, String? continuation}) → Future< AccountsList> -
Get list of accounts by code hash. Returns AccountsList or throw error
override
-
getBlock(
{required String id}) → Future< String> - Get transport block by id and return base64 encoded block or throw error
-
getBlockchainConfig(
{bool force = true}) → Future< BlockchainConfig> -
Get blockchain config or throw error
override
-
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.override -
getContractState(
Address address) → Future< RawContractState> -
Get contract state of address and return RawContractState or throw error
override
-
getDstTransaction(
String messageHash) → Future< RawTransaction?> -
Call get_dst_transaction of nekoton's transport and
return option RawTransaction or throw error
override
-
getFullContractState(
Address address) → Future< FullContractState?> -
Get full contract state of address and return FullContractState or throw error
override
-
getLatestBlock(
{required Address address}) → Future< LatestBlock> - Get latest block by address and return it or throw error
-
getNetworkId(
) → Future< int> -
Get id of network or throw error
override
-
getSignatureId(
) → Future< int?> -
Get transport signature id and return it or throw error
override
-
getTransaction(
String hash) → Future< Transaction?> -
Get single transaction by its id.
Return Transaction if found or throw error
override
-
getTransactions(
{required Address address, required int count, String? fromLt}) → Future< TransactionsList> -
Get list of transactions by address.
Return TransactionsList or throw error
override
-
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> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForNextBlock(
{required String currentBlockId, required Address address, required Duration timeout}) → Future< String> - Wait until next block will come to blockchain and return its id or throw error
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required GqlConnection gqlConnection}) → Future< GqlTransport>