Back to Sway

Mint to Address

docs/reference/src/documentation/operations/asset/mint/address.md

0.71.0491 B
Original Source

Mint to Address

We can mint and transfer the asset to an Address.

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 Address to send it to.

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