getServiceInfo(contract)
Feature
get STO service information
Parameters
string contract address
data of SuccessResponse
object STO service information
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
// Note: an asynchrous request
const getServiceInfo = async () => {
const info = await mitum.sto.getServiceInfo(contractAddress);
console.log(info.data)
};
getServiceInfo();
//output
{
_hint: 'mitum-currency-hal-v0.0.1',
_embedded: {
_hint: 'mitum-sto-design-v0.0.1',
granularity: 1,
policy: {
_hint: 'mitum-sto-policy-v0.0.1',
partitions: [Array],
aggregate: '0',
documents: [Array]
}
},
_links: {
self: { href: '/sto/0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca' }
}
}PrevioussetDocument(contract, sender, title, uri, documentHash, currency)Nextissue(contract, sender, receiver, partition, amount, currency)
Last updated