Class: Checkpoints
Defined in: src/api/entities/Asset/Fungible/Checkpoints/index.ts:33
Handles all Asset Checkpoints related functionality
Extends
Namespace<FungibleAsset>
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
| Parameter | Type |
|---|---|
|
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
| Parameter | Type |
|---|---|
|
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
| Parameter | Type |
|---|---|
| { |
|
|
Returns
Promise<Checkpoint>
Throws
if there is no Checkpoint with the passed ID