Skip to content
LogoLogo

Generated — do not edit. Source of truth: crates/terp-account-billboards/docs/01_minting-an-account.md. Edit there, then rebuild docs.

1. Mint An Account

Initial Fees

The cost to mint is dependent on two requirements:

RequirementCharacter LengthMinimum Delegation
5+ chars (Base Price)710 THIOL1,000 THIOL
4 chars7,100 THIOL (10x)3,000 THIOL (3x)
3 chars71,000 THIOL (100x)5,000 THIOL (5x)

Minting An Account

To mint an account, a user must first grant the marketplace approval for token transfers on their behalf for the account contract.

// calling the account contract
{"approve_all":{"operator":"<accuount-marketplace-addr>"}}

This will allow the minter contract perform its expected escrow functions upon the scenario of an account owner accepting an ask.

Then a user can mint an accuont token (token-id will be account name)

// calling the account minter contract 
{"mint_and_list": {"account": "<eret-skeret>"}}

Before being minted the account name is validated to be a length within the range set by admins,and payments required are validated to have been sent. If so all mint proceeds are burnt. Only native THIOL is accepted currently.

Along with the mint message, the minter forms a default SetAsk msg to the Account Marketplace, letting the marketplace know that a new token has been minted. NOTE: Learn more about the logic designed to on-chain accounts. This should be improved.