Skip to main content
Version: Next

emulator.emulator.gettallies

Home > @blaze-cardano/emulator > Emulator > getTallies

Emulator.getTallies() method

Computes the latest ratification tallies for an action using the most recent stake snapshot.

Signature:

getTallies(actionId: GovernanceActionId | SerialisedGovId): {
tallies: Tallies;
activeCcMembers: bigint;
} | undefined;

Parameters

Parameter

Type

Description

actionId

GovernanceActionId | SerialisedGovId

Identifier of the governance action to inspect.

Returns:

{ tallies: Tallies; activeCcMembers: bigint; } | undefined

{{ tallies: Tallies; activeCcMembers: bigint } | undefined} Tallies plus the count of active committee members, or undefined if unavailable.