getPartitionsInfo(contract, holder)

Feature
get information about the partition held by the holder

Parameters

string contract address, string STO holder’s address

data of SuccessResponse

object STO partition information

example

const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
const holder = "0x07469989b2562afF5E5C3B116CD3AA5Ef814e5a1fca";

// Note: an asynchrous request
const getPartitionsInfo = async () => {
    const info = await mitum.sto.getPartitionsInfo(contractAddress, holder);
    console.log(info.data);
};
getPartitionsInfo();

//output
{
    "_hint": "mitum-currency-hal-v0.0.1",
    "_embedded": [
        "EFGH",
        "ABCD"
    ],
    "_links": {
        "self": {
            "href": "/sto/0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca/holder/0x07469989b2562afF5E5C3B116CD3AA5Ef814e5a1fca/partitions"
        }
    }
}

Last updated