/** * gRPC client for IoTeX blockchain */ import * as grpc from '@grpc/grpc-js'; import { GrpcConfig } from './config'; type APIServiceClient = any; export declare class GrpcClient { private config; private client; private metadata; constructor(config?: Partial); /** * Connect to the gRPC server */ connect(): Promise; /** * Test the connection by getting chain metadata */ private testConnection; /** * Close the connection */ close(): void; /** * Get the API service client */ getAPIServiceClient(): APIServiceClient; /** * Add JWT authentication */ withAuth(jwtToken: string): void; /** * Get metadata for requests */ getMetadata(): grpc.Metadata; /** * Get deadline for requests */ getDeadline(): Date; /** * Generic RPC call wrapper with error handling */ call(method: string, request: TRequest): Promise; /** * GetAccount RPC call */ getAccount(address: string): Promise; /** * GetChainMeta RPC call */ getChainMeta(): Promise; /** * GetEpochMeta RPC call */ getEpochMeta(epochNumber?: number): Promise; /** * GetBlockMetas RPC call */ getBlockMetas(request: any): Promise; /** * SendAction RPC call */ sendAction(action: any): Promise; /** * ReadState RPC call */ readState(request: any): Promise; /** * SuggestGasPrice RPC call */ suggestGasPrice(): Promise; /** * EstimateActionGasConsumption RPC call */ estimateActionGasConsumption(action: any): Promise; /** * GetReceiptByAction RPC call */ getReceiptByAction(actionHash: string): Promise; /** * GetActions RPC call */ getActions(request: any): Promise; /** * GetServerMeta RPC call */ getServerMeta(): Promise; /** * GetRawBlocks RPC call */ getRawBlocks(request: any): Promise; /** * ReadStakingData RPC call */ readStakingData(request: any): Promise; } export {}; //# sourceMappingURL=grpc-client.d.ts.map