Skip to content
Proposal Management Interface

Execute ProposalTry API

POST chain_tvm (Execute Proposal)

This can be submitted only after the proposal deadline. Once submitted, the proposal is cleared whether execution succeeds or fails.

Parameters

type: foundationwill, community, public/private offeringetc.platformtokenpool(noprivate key)transferproposal(0)

gaspriceadjustproposal(1)

mainnetcodeupgradeproposal(2)

selfcontractupgradeproposal(3)

tokenincentiveminerproposal(4)

approvemetaspaceproposal(5)

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_tvm",
"params": [
  "opcode=propose&subcode=runpropose&type=0&sliceno=0",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
{
 "jsonrpc":  "3.0",
 "id":  "1",
 "result": {
   "ret":  "0",
   "err":  "",
   "content": {
    "txhash":  "0x6885997ca51fa08ffded573088b0c5c294652ec842ac7f3182d32e30ce261025"
  }
}
}

On this page