Skip to main content
Version: 29.0.x

Class: Ballots

Defined in: src/api/entities/Asset/Fungible/CorporateActions/Ballots.ts:21

Handles all Asset Ballots related functionality

Extends

Methods

create()

create(args: CreateBallotParams, opts?: ProcedureOpts): Promise<GenericPolymeshTransaction<CorporateBallotWithDetails, CorporateBallotWithDetails>>

Defined in: src/api/entities/Asset/Fungible/CorporateActions/Ballots.ts:25

Create a Ballot for an Asset

Parameters

ParameterType

args

CreateBallotParams

opts?

ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<CorporateBallotWithDetails, CorporateBallotWithDetails>>

Note

this method is of type ProcedureMethod, which means you can call create.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it


get()

get(): Promise<CorporateBallotWithDetails[]>

Defined in: src/api/entities/Asset/Fungible/CorporateActions/Ballots.ts:72

Retrieve all Ballots associated to this Asset

Returns

Promise<CorporateBallotWithDetails[]>


getOne()

getOne(args: object): Promise<CorporateBallotWithDetails>

Defined in: src/api/entities/Asset/Fungible/CorporateActions/Ballots.ts:45

Retrieve a single Ballot associated to this Asset by its ID

Parameters

ParameterType

args

{ id: BigNumber; }

args.id

BigNumber

Returns

Promise<CorporateBallotWithDetails>

Throws

if there is no Ballot assigned to the provided Corporate Action with the passed ID

Throws

if the provided Corporate Action does not exist