UNPKG

@river-build/sdk

Version:

For more details, visit the following resources:

20 lines 999 B
import { Client } from '@connectrpc/connect'; import { StreamService } from '@river-build/proto'; import { type RetryParams } from './rpcInterceptors'; import { UnpackEnvelopeOpts } from './sign'; import { RpcOptions } from './rpcCommon'; import { ParsedMiniblock } from './types'; export interface StreamRpcClientOptions { retryParams: RetryParams; } export type StreamRpcClient = Client<typeof StreamService> & { url: string; opts: StreamRpcClientOptions; }; export declare function makeStreamRpcClient(dest: string, refreshNodeUrl?: () => Promise<string>, opts?: RpcOptions): StreamRpcClient; export declare function getMaxTimeoutMs(opts: StreamRpcClientOptions): number; export declare function getMiniblocks(client: StreamRpcClient, streamId: string | Uint8Array, fromInclusive: bigint, toExclusive: bigint, unpackEnvelopeOpts: UnpackEnvelopeOpts | undefined): Promise<{ miniblocks: ParsedMiniblock[]; terminus: boolean; }>; //# sourceMappingURL=makeStreamRpcClient.d.ts.map