mirror of
https://github.com/sonr-io/sonr.git
synced 2026-09-17 07:26:25 +00:00
67 lines
2.6 KiB
Plaintext
67 lines
2.6 KiB
Plaintext
---
|
|
title: snrd tx gov
|
|
description: Governance transactions subcommands
|
|
---
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
snrd tx gov [flags]
|
|
```
|
|
|
|
```shell
|
|
snrd tx gov [command]
|
|
```
|
|
|
|
## Available Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `cancel-proposal` | Cancel governance proposal before the voting period ends. Must be signed by the proposal creator. |
|
|
| `deposit` | Deposit tokens for an active proposal |
|
|
| `draft-proposal` | Generate a draft proposal json file. The generated proposal json contains only one message (skeleton). |
|
|
| `submit-legacy-proposal` | Submit a legacy proposal along with an initial deposit |
|
|
| `submit-proposal` | Submit a proposal along with some messages, metadata and deposit |
|
|
| `vote` | Vote for an active proposal, options: yes/no/no_with_veto/abstain |
|
|
| `weighted-vote` | Vote for an active proposal, options: yes/no/no_with_veto/abstain |
|
|
|
|
## Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"help": { type: "string", description: "for gov" },
|
|
}}
|
|
/>
|
|
|
|
## Global Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
|
|
"chain-id": { type: "string", description: "The network chain ID" },
|
|
"fees": { type: "string", description: "Fees to pay along with transaction; eg: 10aatom" },
|
|
"from": { type: "string", description: "Name or address of private key with which to sign" },
|
|
"gas-adjustment": { type: "float", default: "1", description: "adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored" },
|
|
"gas-prices": { type: "string", description: "Gas prices to determine the transaction fee (e.g. 10aatom)" },
|
|
"home": { type: "string", default: "/Users/prad/.sonr", description: "directory for config and data" },
|
|
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend" },
|
|
"log_format": { type: "string", default: "plain", description: "The logging format (json|plain)" },
|
|
"log_level": { type: "string", default: "info", description: "The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>')" },
|
|
"log_no_color": { type: "string", description: "colored logs" },
|
|
"node": { type: "string", default: "tcp://localhost:26657", description: "<host>:<port> to tendermint rpc interface for this chain" },
|
|
"trace": { type: "string", description: "out full stack trace on errors" },
|
|
}}
|
|
/>
|
|
|
|
## Examples
|
|
|
|
### Submit transaction
|
|
|
|
```shell
|
|
snrd tx gov --from alice --chain-id sonrtest_1-1
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [snrd tx](./snrd_tx) - Parent command
|