Assets
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles all Asset related functionality
Assets
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
Parameters:
args
opts?
Create an Asset
note
if ticker is already reserved, then required role:
Ticker Owner
Parameters:
args
opts?
Retrieve an Asset
Parameters:
â–ª args: object
ticker
string
Asset ticker
Retrieve all of the Assets owned by an Identity
note
Assets with unreadable characters in their tickers will be left out
Parameters:
args?
undefined | object
Retrieve a Ticker Reservation
Parameters:
â–ª args: object
ticker
string
Asset ticker
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:
args?
undefined | object
â–¸ isTickerAvailable(args
: object): Promise‹boolean›
Check if a ticker hasn't been reserved
note
can be subscribed to
Parameters:
â–ª args: object
ticker
string
Returns: Promise‹boolean›
Parameters:
â–ª args: object
ticker
string
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
Parameters:
args
opts?
â–¸ claimClassicTicker(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ createAsset(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ getAsset(args
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getAssets(args?
: undefined | object): Promise‹[]›
Defined in
Returns: Promise‹[]›
â–¸ getTickerReservation(args
: object): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getTickerReservations(args?
: undefined | object): Promise‹[]›
Defined in
Returns: Promise‹[]›
Defined in
â–¸ isTickerAvailable(args
: object, callback
: ‹boolean›): Promise‹›
Defined in
▪ callback: ‹boolean›
Returns: Promise‹›
â–¸ reserveTicker(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››