Class: TickerReservation
api/entities/TickerReservation.TickerReservation
Represents a reserved Asset symbol in the Polymesh blockchain. Ticker reservations expire after a set length of time, after which they can be reserved by another Identity. A Ticker must be previously reserved by an Identity for that Identity to be able create an Asset with it
Hierarchy
-
Entity
<UniqueIdentifiers
,string
>↳
TickerReservation
Properties
ticker
• ticker: string
reserved ticker
Defined in
api/entities/TickerReservation/index.ts:54
uuid
• uuid: string
Inherited from
Defined in
Methods
createAsset
▸ createAsset(args
, opts?
): Promise
<GenericPolymeshTransaction
<FungibleAsset
, FungibleAsset
>>
Create an Asset using the reserved ticker
Parameters
Name | Type |
---|---|
args | CreateAssetParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<FungibleAsset
, FungibleAsset
>>
Note
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
Defined in
api/entities/TickerReservation/index.ts:191
details
▸ details(): Promise
<TickerReservationDetails
>
Retrieve the Reservation's owner, expiry date and status
Returns
Promise
<TickerReservationDetails
>
Note
can be subscribed to, if connected to node using a web socket
Defined in
api/entities/TickerReservation/index.ts:94
▸ details(callback
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback | SubCallback <TickerReservationDetails > |
Returns
Promise
<UnsubCallback
>
Defined in
api/entities/TickerReservation/index.ts:95
exists
▸ exists(): Promise
<boolean
>
Determine whether this Ticker Reservation exists on chain
Returns
Promise
<boolean
>
Overrides
Defined in
api/entities/TickerReservation/index.ts:216