getAuthorizedInfo(contract, operator)
Feature
get account information that has granted the right to the Operator
Parameters
string contract address,
string operator address
data of SuccessResponse
object account information that has granted the right to the Operator
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const operator = "0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca";
// Note: an asynchrous request
const getAuthorizedInfo = async () => {
const info = await mitum.sto.getAuthorizedInfo(contractAddress, operator)
console.log(info.data)
};
getAuthorizedInfo();
//output
{
"_hint": "mitum-currency-hal-v0.0.1",
"_embedded": {
"holders": [
"0x07469989b2562afF5E5C3B116CD3AA5Ef814e5a1fca"
]
},
"_links": {
"self": {
"href": "/sto/0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca/operator/0x4874C17C354c498cf44D2946612DBe47fBcE7E87fca/holders"
}
}
}PreviousgetOperatorsByHolder(contract, holder, partition)NextrevokeOperator(contract, sender, operator, partition, currency)
Last updated