createAsset
createAsset(
create,algod):Promise<SendTransactionResult&object>
Defined in: src/asset.ts:23
Parameters
create
CreateAssetParams
The asset creation definition
algod
AlgodClient
An algod client
Returns
Promise<SendTransactionResult & object>
The transaction object and optionally the confirmation if it was sent to the chain (skipSending is false or unset)
Example
await algokit.createAsset({ creator: account, total: 1, decimals: 0, name: 'My asset' }, algod)