Kit
Functions

fetchEncodedSysvarAccount

fetchEncodedSysvarAccount<TAddress>(rpc, address, config?): Promise<MaybeEncodedAccount<TAddress>>

Fetch an encoded sysvar account.

Sysvars are special accounts that contain dynamically-updated data about the network cluster, the blockchain history, and the executing transaction.

Type Parameters

Type Parameter
TAddress extends SysvarAddress

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
addressTAddress
config?FetchAccountConfig

Returns

Promise<MaybeEncodedAccount<TAddress>>

On this page