getCurrency(currencyID)
Feature
Get information about a specific currency.
Parameters
string currency ID
data of SuccessResponse
object currency Information
example
// Note: an asynchronous request.
const currencyInfo = async () => {
const currencyID = "MIT";
const info = await mitum.currency.getCurrency(currencyID);
console.log(info.data);
};
currencyInfo();
// output
{
_hint: 'mitum-currency-currency-design-v0.0.1',
initial_supply: '100000000000000000000000000000000000000000',
currency_id: 'MIT',
decimal: '9',
genesis_account: '0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca',
policy: {
_hint: 'mitum-currency-currency-policy-v0.0.1',
min_balance: '1',
feeer: {
_hint: 'mitum-currency-fixed-feeer-v0.0.1',
receiver: '0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca',
amount: '1'
}
},
total_supply: '100000000000000000000000000000000000000000'
}PreviousgetAllCurrencies()NextregisterCurrency(genesisAddress, initialSupply, currency, decimal, data)
Last updated