Skip to main content
Version: 24.2.x

Class: Checkpoints

api/entities/Asset/Fungible/Checkpoints.Checkpoints

Handles all Asset Checkpoints related functionality

Hierarchy

Properties

schedules

schedules: Schedules

Defined in

api/entities/Asset/Fungible/Checkpoints/index.ts:36

Methods

create

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

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

Parameters

NameType
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

Defined in

api/entities/Asset/Fungible/Checkpoints/index.ts:60


get

get(paginationOpts?): Promise<ResultSet <CheckpointWithData>>

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

Parameters

NameType
paginationOpts?PaginationOptions

Returns

Promise<ResultSet <CheckpointWithData>>

Note

supports pagination

Defined in

api/entities/Asset/Fungible/Checkpoints/index.ts:94


getOne

getOne(args): Promise<Checkpoint>

Retrieve a single Checkpoint for this Asset by its ID

Parameters

NameType
argsObject
args.idBigNumber

Returns

Promise<Checkpoint>

Throws

if there is no Checkpoint with the passed ID

Defined in

api/entities/Asset/Fungible/Checkpoints/index.ts:69