Credit an account
As the issuing institution, you can top up an account with X amount of tokens. This is done by calling the mint route.
🌐 POST
/v1/mint/:account
Request body
Parameters:
amount: The amount of tokens to be created. Make sure to provide a string with the right number of decimals. For example, with 9 decimals, if you want to set the initial balance to 1$, you should provideinitial_balance: "1000000000". Default is"0".
Response body
Parameters:
account: The wallet public address.available: The amount of tokens in the university token account.
Example:
{ "account": "EUZuWt4ECBzdQvTGZQYSHouWA5bLnGS3oZDQ1nLTGwwx", "available": { "amount": "1000000000", "decimals": 9, "uiAmountString": "1", "currency": "usd", "guarantor": "aire" }}
Note that the
availablefield will be calculated and may not reflect the exact amount of tokens in the university token account. In fact, a mint request will forward the request to AIRE Net without verifying if the request was successful. A mint request is usually validated by AIRE Net in about a second.