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