getModelInfo(contract)
Feature
Get information about the DAO model.
Parameters
string
contract address
data
of SucessResponse
object
dao service information
example
const contractAddress = "0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca";
// Note: an asynchronous request.
const daoInfo = async () => {
const info = await mitum.dao.getModelInfo(contractAddress);
console.log(info.data);
};
daoInfo();
// output
{
_hint: "mitum-dao-design-v0.0.1",
option: "biz",
policy: {
_hint: "mitum-dao-policy-v0.0.1",
voting_power_token: "MCC",
threshold: "1000",
proposal_fee: {
amount: "10",
currency: "MCC",
_hint: "mitum-currency-amount-v0.0.1"
},
proposer_whitelist: {
_hint: "mitum-dao-whitelist-v0.0.1",
active: true,
accounts: [
0x893EEE05C6348516A583F02ccd1D065737261B53fca"
]
},
proposal_review_period: 30,
registration_period: 30,
pre_snapshot_period: 30,
voting_period: 30,
post_snapshot_period: 30,
execution_delay_period: 30,
turnout: 1,
quorum: 1
}
}
PreviousupdateModelConfig(contract, sender, data, currency)NextwriteBizProposal(proposer, startTime, url, hash, options)
Last updated