getModelInfo(contract)
Feature
get information of point with given contract address.
Parameters
string
contract address,
data
of SuccessResponse
object
point Information
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
// Note: an asynchrous request
const pointInfo = async () => {
const info = await mitum.point.getModelInfo(contractAddress);
console.log(info.data);
};
pointInfo();
// output
{
_hint: 'mitum-point-design-v0.0.1',
symbol: 'CBA',
name: 'CBA_POINT',
decimal: '9',
policy: {
_hint: 'mitum-point-policy-v0.0.1',
total_supply: '10000000',
approve_list: []
}
}
PreviousregisterModel(contract, sender, currency, name, symbol, decimal?, initialSupply?)Nextmint(contract, sender, currency, receiver, amount)
Last updated