Query deposits by proposalId
/gov/proposals/{proposalId}/deposits
curl -L \ --url 'https://akt.nownodes.io/gov/proposals/{proposalId}/deposits'
[ { "amount": [ { "denom": "stake", "amount": "50" } ], "proposal_id": "text", "depositor": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" } ]
Send transaction to deposit tokens to a proposal
proposal id
bech32 encoded address
cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27
curl -L \ --request POST \ --url 'https://akt.nownodes.io/gov/proposals/{proposalId}/deposits' \ --header 'Content-Type: application/json' \ --data '{ "base_req": { "from": "cosmos1g9ahr6xhht5rmqven628nklxluzyv8z9jqjcmc", "memo": "Sent via Cosmos Voyager 🚀", "chain_id": "Cosmos-Hub", "account_number": "0", "sequence": "1", "gas": "200000", "gas_adjustment": "1.2", "fees": [ { "denom": "stake", "amount": "50" } ], "simulate": false }, "depositor": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27", "amount": [ { "denom": "stake", "amount": "50" } ] }'
{ "msg": [ "text" ], "fee": { "gas": "text", "amount": [ { "denom": "stake", "amount": "50" } ] }, "memo": "text", "signature": { "signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=", "pub_key": { "type": "tendermint/PubKeySecp256k1", "value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH" }, "account_number": "0", "sequence": "0" } }
Query deposit by proposalId and depositor address
/gov/proposals/{proposalId}/deposits/{depositor}
Bech32 depositor address
curl -L \ --url 'https://akt.nownodes.io/gov/proposals/{proposalId}/deposits/{depositor}'
{ "amount": [ { "denom": "stake", "amount": "50" } ], "proposal_id": "text", "depositor": "cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27" }