@drift-labs/sdk-browser
Version:
SDK for Drift Protocol
9 lines (8 loc) • 418 B
TypeScript
import { BlockhashWithExpiryBlockHeight, Commitment, Connection } from '@solana/web3.js';
import { BlockhashFetcher } from './types';
export declare class BaseBlockhashFetcher implements BlockhashFetcher {
private connection;
private blockhashCommitment;
constructor(connection: Connection, blockhashCommitment: Commitment);
getLatestBlockhash(): Promise<BlockhashWithExpiryBlockHeight | undefined>;
}