Assets
Handles all Asset related functionality
Hierarchy
Assets
Index
Methods
Methods
claimClassicTicker
▸ claimClassicTicker(args
: ClaimClassicTickerParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹TickerReservation››
Defined in src/Assets.ts:73
Claim a ticker symbol that was reserved in Polymath Classic (Ethereum). The Ethereum Account that owns the ticker must sign a special message that contains the DID of the Identity that will own the ticker in Polymesh, and provide the signed data to this call
note
this method is of type ProcedureMethod, which means you can call claimClassicTicker.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Parameters:
Name | Type |
---|---|
| |
|
Returns: Promise‹TransactionQueue‹TickerReservation››
createAsset
▸ createAsset(args
: CreateAssetWithTickerParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹Asset››
Defined in src/Assets.ts:86
Create an Asset
note
if ticker is already reserved, then required role:
Ticker Owner
note
this method is of type ProcedureMethod, which means you can call createAsset.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Parameters:
Name | Type |
---|---|
| |
|
Returns: Promise‹TransactionQueue‹Asset››
getAsset
▸ getAsset(args
: object): Promise‹Asset›
Defined in src/Assets.ts:178
Retrieve an Asset
Parameters:
▪ args: object
Name | Type | Description |
---|---|---|
| string | Asset ticker |
Returns: Promise‹Asset›
getAssets
▸ getAssets(args?
: undefined | object): Promise‹Asset[]›
Defined in src/Assets.ts:146
Retrieve all of the Assets owned by an Identity
note
Assets with unreadable characters in their tickers will be left out
Parameters:
Name | Type |
---|---|
| undefined | object |
Returns: Promise‹Asset[]›
getTickerReservation
▸ getTickerReservation(args
: object): TickerReservation
Defined in src/Assets.ts:132
Retrieve a Ticker Reservation
Parameters:
▪ args: object
Name | Type | Description |
---|---|---|
| string | Asset ticker |
Returns: TickerReservation
getTickerReservations
▸ getTickerReservations(args?
: undefined | object): Promise‹TickerReservation[]›
Defined in src/Assets.ts:98
Retrieve all the ticker reservations currently owned by an Identity. This doesn't include Assets that have already been launched
note
reservations with unreadable characters in their tickers will be left out
Parameters:
Name | Type |
---|---|
| undefined | object |
Returns: Promise‹TickerReservation[]›
reserveTicker
▸ reserveTicker(args
: ReserveTickerParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹TickerReservation››
Defined in src/Assets.ts:61
Reserve a ticker symbol under the ownership of the signing Identity to later use in the creation of an Asset. The ticker will expire after a set amount of time, after which other users can reserve it
note
this method is of type ProcedureMethod, which means you can call reserveTicker.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Parameters:
Name | Type |
---|---|
| |
|
Returns: Promise‹TransactionQueue‹TickerReservation››
Last updated