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