v1
latestSwagger 2.02026-07-17492548.9 KBICS22
Submit a proposal
Send transaction to submit a proposal
post/gov/proposals
Query parameters
simulateboolean
if true, ignore the gas field and perform a simulation of a transaction, but don't broadcast it
generate_onlyboolean
if true, build an unsigned transaction and write it back
Request body
Example request
{
"base_req": {
"password": "12345678",
"account_number": "0",
"sequence": "0",
"gas": "200000",
"gas_adjustment": "1.2"
},
"proposal_type": "text",
"proposer": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27",
"initial_deposit": [
{
"denom": "steak",
"amount": "50"
}
]
}Response
OK
Example response
{
"check_tx": {
"code": 0,
"data": "data",
"log": "log",
"gas_used": 5000,
"gas_wanted": 10000,
"info": "info",
"tags": [
"",
""
]
},
"deliver_tx": {
"code": 5,
"data": "data",
"log": "log",
"gas_used": 5000,
"gas_wanted": 10000,
"info": "info",
"tags": [
"",
""
]
},
"hash": "EE5F3404034C524501629B56E0DDC38FAD651F04"
}