/** * Blockchain queries for IoTeX SDK */ import { GrpcClient } from '../client/grpc-client'; import { ChainMeta, Block, EpochMeta, VoteBucket } from '../types'; export declare class Blockchain { private client; constructor(client: GrpcClient); /** * Get blockchain metadata */ getChainMeta(): Promise; /** * Get block by height or hash */ getBlock(heightOrHash: number | string): Promise; /** * Get epoch metadata */ getEpochMeta(epochNumber?: number): Promise; /** * Get voting buckets (paginated) */ getBucketList(params?: { voterAddress?: string; candidateName?: string; offset?: number; limit?: number; }): Promise; /** * Get bucket by index */ getBucket(bucketIndex: number): Promise; /** * Get blockchain version */ getVersion(): Promise<{ packageVersion: string; packageCommitID: string; gitStatus: string; goVersion: string; buildTime: string; }>; /** * Get actions by various filters */ getActions(params: { byHash?: string; byAddr?: { address: string; start: number; count: number; }; byBlk?: { blkHash: string; start: number; count: number; }; byIndex?: { start: number; count: number; }; }): Promise; /** * Get receipt by action hash */ getReceipt(actionHash: string): Promise; /** * Read contract state */ readContract(params: { execution: { amount: string; contract: string; data: string; }; callerAddress: string; gasLimit?: string; gasPrice?: string; }): Promise; } //# sourceMappingURL=queries.d.ts.map