Kit
Functions

fetchSysvarRecentBlockhashes

fetchSysvarRecentBlockhashes(rpc, config?): Promise<SysvarRecentBlockhashes>

Fetches the RecentBlockhashes sysvar account using any RPC that supports the GetAccountInfoApi.

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<SysvarRecentBlockhashes>

Deprecated

Transaction fees should be determined with the GetFeeForMessageApi.getFeeForMessage RPC method. For additional context see the Comprehensive Compute Fees proposal.

On this page