GenusGRPCService class

Constructors

GenusGRPCService({required Object host, required int port, ChannelOptions options = const ChannelOptions(credentials: ChannelCredentials.insecure())})

Properties

genusBlockStub BlockServiceClient
The client stub for the Genus Block gRPC service
final
genusTransactionStub TransactionServiceClient
The client stub for the Genus Transaction gRPC service
final
hashCode int
The hash code for this object.
no setterinherited
host Object
The host name or IP address of the remote node.
final
options → ChannelOptions
The configuration options for the gRPC channel.
final
port int
The port used to establish a connection with the remote node.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createOnChainTransactionIndex({required IndexSpec indexSpec, bool? populate, CallOptions? options}) Future<CreateOnChainTransactionIndexResponse>
Returns a CreateOnChainTransactionIndexResponse object for the transaction index created at the given indexSpec.
dropIndex({required String indexName, CallOptions? options}) Future<DropIndexResponse>
Returns a DropIndexResponse object for the index dropped at the given indexName.
getBlockByDepth({int? depth, double? confidence, CallOptions? options}) Future<BlockResponse>
Returns a BlockResponse object for the block at the given depth and confidence.
getBlockByHeight({int? height, double? confidence, CallOptions? options}) Future<BlockResponse>
////////////////////////// Blocks Returns a BlockResponse object for the block at the given height and confidence.
getBlockById({required int blockId, double? confidence, CallOptions? options}) Future<BlockResponse>
Returns a BlockResponse object for the block at the given blockId and confidence.
getExistingTransactionIndexes({CallOptions? options}) Future<GetExistingTransactionIndexesResponse>
Returns a GetExistingTransactionIndexesResponse object for the existing transaction indexes.
getTransactionByAddressStream({required LockAddress address, double? confidence, CallOptions? options}) Stream<TransactionResponse>
Streams a TransactionResponse object for the transaction found at the given addresses and confidence.
getTransactionById({required int transactionId, double? confidence, CallOptions? options}) Future<TransactionResponse>
////////////////////////// Transactions Returns a TransactionResponse object for the transaction at the given transactionId and confidence.
getTxOsByAddress({required LockAddress address, double? confidence, CallOptions? options}) Future<TxoAddressResponse>
////////////////////////// Transaction Ouputs (TxOs) Returns a TxoAddressResponse object for the transaction outputs found at the given addresses and confidence.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
streamIndexedTransactions({required String indexName, CallOptions? options, int? maxResults, int? skipResults, List<IndexMatchValue>? indexMatchValues}) Stream<TransactionResponse>
Streams a TransactionResponse object for the transaction found at the given indexName, maxResults, skipResults, and indexMatchValues.
streamTxOsByAddress({required LockAddress address, double? confidence, CallOptions? options}) Stream<TxoAddressResponse>
Streams a TxoAddressResponse object for the transaction outputs found at the given addresses and confidence.
streamTxOsByAssetLabel({required AssetLabel assetLabel, double? confidence, CallOptions? options}) Stream<TxoResponse>
Streams a TxoResponse object for the transaction outputs found at the given assetLabel and confidence.
toString() String
A string representation of this object.
inherited

Operators

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