Class: Offering
Defined in: src/api/entities/Offering/index.ts:65
Represents an Asset Offering in the Polymesh blockchain
Extends
Properties
asset
asset:
FungibleAsset
Defined in: src/api/entities/Offering/index.ts:84
Asset being offered
id
id:
BigNumber
Defined in: src/api/entities/Offering/index.ts:79
identifier number of the Offering
uuid
uuid:
string
Defined in: src/api/entities/Entity.ts:46
Inherited from
Methods
close()
close(
opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Offering/index.ts:200
Close the Offering
Parameters
| Parameter | Type |
|---|---|
|
Returns
Promise<GenericPolymeshTransaction<void, void>>
Note
this method is of type NoArgsProcedureMethod, which means you can call close.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
details()
Call Signature
details():
Promise<OfferingDetails>
Defined in: src/api/entities/Offering/index.ts:139
Retrieve the Offering's details
Returns
Promise<OfferingDetails>
Promise that resolves to the Offering details
Call Signature
details(
callback:SubCallback<OfferingDetails>):Promise<UnsubCallback>
Defined in: src/api/entities/Offering/index.ts:150
Retrieve the Offering's details (with subscription support)
Parameters
| Parameter | Type | Description |
|---|---|---|
| Callback function that receives offering detail updates |
Returns
Promise<UnsubCallback>
Promise that resolves to an unsubscribe function
Note
can be subscribed to, if connected to node using a web socket
enableOffChainFunding()
enableOffChainFunding(
args:EnableOffChainFundingParams,opts?:ProcedureOpts):Promise<GenericPolymeshTransaction<void,void>>
Defined in: src/api/entities/Offering/index.ts:220
Enable off-chain funding for the Offering