Back to Sway

Mint to Address or Contract

docs/reference/src/documentation/operations/asset/mint/address-or-contract.md

0.71.0539 B
Original Source

Mint to Address or Contract

We can mint and transfers to an Address or a Contract.

To use the function we must import it.

sway
{{#include ../../../../code/operations/asset_operations/src/lib.sw:mint_to_import}}

To mint some amount of an asset we specify the amount that we would like to mint and the Identity to send it to.

sway
{{#include ../../../../code/operations/asset_operations/src/lib.sw:mint_to}}