feat: add getFeeCalculatorForBlockhash method

This commit is contained in:
Justin Starry
2020-06-04 18:12:59 +08:00
committed by Michael Vines
parent e876081d52
commit e622bb12b3
4 changed files with 119 additions and 2 deletions

View File

@ -284,6 +284,10 @@ declare module '@solana/web3.js' {
getRecentBlockhashAndContext(
commitment: ?Commitment,
): Promise<RpcResponseAndContext<BlockhashAndFeeCalculator>>;
getFeeCalculatorForBlockhash(
blockhash: Blockhash,
commitment: ?Commitment,
): Promise<RpcResponseAndContext<FeeCalculator | null>>;
getRecentBlockhash(
commitment: ?Commitment,
): Promise<BlockhashAndFeeCalculator>;