GqlTransportImpl class

Wrapper structure above GqlTransport that provides interface to communicate with it via TransportBoxTrait.

Constructors

GqlTransportImpl({required NekotonBridge bridge, required ArcTransportBoxTrait innerTransport})
const

Properties

bridge NekotonBridge
final
hashCode int
The hash code for this object.
no setterinherited
innerTransport ArcTransportBoxTrait
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccountsByCodeHash({required String codeHash, required int limit, String? continuation, dynamic hint}) Future<String>
Get list of accounts by code hash. Returns json-encoded AccountsList or throw error
getBlock({required String id, dynamic hint}) Future<String>
Get transport block by id and return base64 encoded block or throw error
getBlockchainConfig({required bool force, dynamic hint}) Future<String>
Get config of transport. Returns json-encoded BlockchainConfigDef or throw error
getContractState({required String address, dynamic hint}) Future<String>
Get contract state of address and return json-encoded RawContractState or throw error
getDstTransaction({required String messageHash, dynamic hint}) Future<String?>
Call get_dst_transaction of nekoton's transport and return option json-encoded RawTransaction or throw error
getFullContractState({required String address, dynamic hint}) Future<String?>
Get full contract state of address and return json-encoded FullContractState or throw error
getLatestBlock({required String address, dynamic hint}) Future<LatestBlock>
Get latest block by address and return it or throw error
getNetworkId({dynamic hint}) Future<int>
Get id of network or throw error
getSignatureId({dynamic hint}) Future<int?>
Get transport signature id and return it or throw error
getTransaction({required String hash, dynamic hint}) Future<String?>
Get single transaction by its hash. Return json-encoded Transaction or throw error
getTransactions({required String address, String? fromLt, required int count, dynamic hint}) Future<String>
Get list of transactions by address. Return json-encoded TransactionsList or throw error
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
waitForNextBlock({required String currentBlockId, required String address, required int timeout, dynamic hint}) Future<String>
Wait until next block will come to blockchain and return its id or throw error timeout - in milliseconds

Operators

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

Static Methods

newGqlTransportImpl({required NekotonBridge bridge, required GqlConnectionDartWrapper gqlConnection, dynamic hint}) Future<GqlTransportImpl>