Skip to main content

Resource Minter

resource Minter {
allowedAmount: UFix64

Resource object that token admin accounts can hold to mint new tokens.


func init(allowedAmount UFix64)


fun mintTokens()

func mintTokens(amount UFix64): ExampleToken.Vault

Function that mints new tokens, adds them to the total supply, and returns them to the calling context.


  • amount : The quantity of tokens to mint

Returns: The Vault resource containing the minted tokens