- Preparing search index...
- The search index is not available
cardano-sdk
Function calcNodeMetricsValues
- calcNodeMetricsValues(metrics: {
activeStake: bigint;
activeStakePercentage: Percent;
blocksCreated: number;
delegators: number;
lastRos: Percent;
livePledge: bigint;
liveStake: bigint;
ros: Percent;
saturation: Percent;
}, apy?: number): StakePoolMetrics
-
Parameters
-
metrics: {
activeStake: bigint;
activeStakePercentage: Percent;
blocksCreated: number;
delegators: number;
lastRos: Percent;
livePledge: bigint;
liveStake: bigint;
ros: Percent;
saturation: Percent;
}
-
activeStake: bigint
-
activeStakePercentage: Percent
-
blocksCreated: number
-
delegators: number
-
-
livePledge: bigint
-
liveStake: bigint
-
-
-
Optional
apy: number
Calculates metrics that depends on Node's retrieved data. Since some metrics are obtained from the Node they have to be calculated outside db queries