GRPCPublicClient class

GRPCPublicClient is class for defining the public GRPC client.

Constructors

GRPCPublicClient.new(String host, int port)
factory
GRPCPublicClient.internal()

Properties

channel ↔ ClientChannel
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
host String
getter/setter pair
port int
getter/setter pair
publicServiceClient ↔ PublicServiceClient
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
close client connection
dispose() → void
executeReadOnlyCall(double fee, double maximuGas, String targetAddress, String targetFunction, List<int> parameters, {String? callerAddress}) Future<ReadOnlyExecutionOutput>
ExecuteReadOnlyCall
getBlocks({List<String>? blockIds}) Future<GetBlocksResponse?>
Get blocks
getDataStoreEntries(List<GetDatastoreEntryFilter> filters) Future<GetDatastoreEntriesResponse?>
GetDatastoreEntries
getEndorsements(List<String> endorsementIds) Future<GetEndorsementsResponse?>
GetEndorsements
getNextBlockBestParents() Future<GetNextBlockBestParentsResponse>
Get block next parrents
getOperations(List<String> operationIds) Future<List<OperationWrapper>>
Get operations
getScExecutionEvents(List<ScExecutionEventsFilter> filters) Future<List<ScExecutionEvent>>
getScExecutionEvents gets the smart contract execution events
getSelectorDraw(List<SelectorDrawsFilter> filters) Future<GetSelectorDrawsResponse?>
getSelectorDraw gets selector draws
getStakers({Int64? minRolls, Int64? maxRolls, Int64? limit}) Future<List<StakerEntry>>
getStakers gets the list of stakers
getStatus() Future<PublicStatus>
getStatus get network status
getTransactionThroughput() Future<int>
Get transaction throughput
newBlocks() Stream<SignedBlock>
stream new blocks
newEndorsements() Stream<SignedEndorsement>
stream new endorsements
newFilledBlocks() Stream<FilledBlock>
stream new filled blocks
newOperations({List<NewOperationsFilter>? filters}) Stream<SignedOperation>
stream new operations
newSlotExecutionOutputs({List<NewSlotExecutionOutputsFilter>? filters}) Stream<SlotExecutionOutput>
stream new slot execution outputs
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryState({List<ExecutionQueryRequestItem>? queries}) Future<QueryStateResponse>
Query state
searchOperations(List<SearchOperationsFilter> filters) Future<SearchOperationsResponse>
Search Operations
sendBlocks(Uint8List blocks) Stream<String>
stream send blocks
sendEndorsements(List<Uint8List> endorsements) Stream<List<String>>
stream send endorsements
sendOperations(List<Uint8List> operations) Stream<SendOperationsResponse>
stream send endorsements
toString() String
A string representation of this object.
inherited
transactionThroughput({int? interval}) Stream<int>
Stream of transaction throughput, interval is stream interval in seconds

Operators

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