Skip to main content
Version: 29.0.x

Class: Checkpoints

Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:33

Handles all Asset Checkpoints related functionality

Extends​

Properties​

schedules​

schedules: Schedules

Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:34

Methods​

create()​

create(opts?: ProcedureOpts): Promise<GenericPolymeshTransaction<Checkpoint, Checkpoint>>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:53

Create a snapshot of Asset Holders and their respective balances at this moment

Parameters​

ParameterType

opts?

ProcedureOpts

Returns​

Promise<GenericPolymeshTransaction<Checkpoint, Checkpoint>>

Note​

this method is of type NoArgsProcedureMethod, 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(paginationOpts?: PaginationOptions): Promise<ResultSet<CheckpointWithData>>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:85

Retrieve all Checkpoints created on this Asset, together with their corresponding creation Date and Total Supply

Parameters​

ParameterType

paginationOpts?

PaginationOptions

Returns​

Promise<ResultSet<CheckpointWithData>>

Note​

supports pagination


getOne()​

getOne(args: object): Promise<Checkpoint>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:60

Retrieve a single Checkpoint for this Asset by its ID

Parameters​

ParameterType

args

{ id: BigNumber; }

args.id

BigNumber

Returns​

Promise<Checkpoint>

Throws​

if there is no Checkpoint with the passed ID