Function
registerAsset
registerAsset( chromiaClient: IClient, adminSignatureProvider: SignatureProvider, name: string, symbol: string, decimals: number, iconUrl: string, ): Promise<{ receipt: TransactionReceipt }>registers a new asset
Parameters
- chromiaClient: IClient
a client to connect to the blockchain
- adminSignatureProvider: SignatureProvider
a signature provider with the keypair stored in chromia.yml under
lib.ft4.core.admin - name: string
the name of the asset
- symbol: string
the symbol (or ticker) for the asset
- decimals: number
how many decimal places the asset will have
- iconUrl: string
a URL to an icon for this asset
Returns Promise<{ receipt: TransactionReceipt }>
a TransactionReceipt object that allows to check the status of the transaction and its RID
- chromiaClient: IClient