Functions
fetchSysvarEpochRewards
fetchSysvarEpochRewards(
rpc
,config?
):Promise
<Readonly
<{active
:boolean
;distributedRewards
:Lamports
;distributionStartingBlockHeight
:bigint
;numPartitions
:bigint
;parentBlockhash
:Blockhash
;totalPoints
:bigint
;totalRewards
:Lamports
; }>>
Fetch the EpochRewards
sysvar account using any RPC that supports the
GetAccountInfoApi.
Parameters
Parameter | Type |
---|---|
rpc | Rpc <GetAccountInfoApi > |
config? | FetchAccountConfig |
Returns
Promise
<Readonly
<{ active
: boolean
; distributedRewards
: Lamports
; distributionStartingBlockHeight
: bigint
; numPartitions
: bigint
; parentBlockhash
: Blockhash
; totalPoints
: bigint
; totalRewards
: Lamports
; }>>