api.entities.Asset.Checkpoints.Checkpoints - PolymeshAssociation/polymesh-sdk GitHub Wiki

Class: Checkpoints

api/entities/Asset/Checkpoints.Checkpoints

Handles all Asset Checkpoints related functionality

Hierarchy

  • Namespace<Asset>

    Checkpoints

Table of contents

Properties

Methods

Properties

schedules

schedules: Schedules

Defined in

api/entities/Asset/Checkpoints/index.ts:29

Methods

create

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

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

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

Parameters

Name Type
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Checkpoint, Checkpoint>>


get

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

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

Note

supports pagination

Parameters

Name Type
paginationOpts? PaginationOptions

Returns

Promise<ResultSet<CheckpointWithData>>


getOne

getOne(args): Promise<Checkpoint>

Retrieve a single Checkpoint for this Asset by its ID

Throws

if there is no Checkpoint with the passed ID

Parameters

Name Type
args Object
args.id BigNumber

Returns

Promise<Checkpoint>