feat: add getBlockTime method

This commit is contained in:
Justin Starry
2020-05-19 11:27:36 +08:00
committed by Michael Vines
parent e10a5c90ab
commit 4b613a4574
4 changed files with 50 additions and 0 deletions

1
web3.js/module.d.ts vendored
View File

@ -198,6 +198,7 @@ declare module '@solana/web3.js' {
commitment?: Commitment,
): Promise<RpcResponseAndContext<number>>;
getBalance(publicKey: PublicKey, commitment?: Commitment): Promise<number>;
getBlockTime(slot: number): Promise<number | null>;
getClusterNodes(): Promise<Array<ContactInfo>>;
getConfirmedBlock(slot: number): Promise<ConfirmedBlock>;
getConfirmedTransaction(