add other tests and update docs

This commit is contained in:
Federico Kunze
2018-11-27 15:16:33 +01:00
parent a2189bc672
commit 666fafb97a
3 changed files with 299 additions and 299 deletions
+31 -1
View File
@@ -183,10 +183,40 @@ gaiacli tx sign --validate-signatures signedSendTx.json
You can broadcast the signed transaction to a node by providing the JSON file to the following command:
```
```bash
gaiacli tx broadcast --node=<node> signedSendTx.json
```
### Query Transactions
#### Matching a set of tags
You can use the transaction search command to query for transactions that match a specific set of `tags`, which are added on every transaction.
```bash
gaiacli query txs --tags=<tag1>:<value1>&<tag2>:<value2>
```
::: tip Note
You can find a list of available `tags` on each of the SDK modules:
- [Common tags](https://github.com/cosmos/cosmos-sdk/blob/d1e76221d8e28824bb4791cb4ad8662d2ae9051e/types/tags.go#L57-L63)
- [Staking tags](https://github.com/cosmos/cosmos-sdk/blob/d1e76221d8e28824bb4791cb4ad8662d2ae9051e/x/stake/tags/tags.go#L8-L24)
- [Governance tags](https://github.com/cosmos/cosmos-sdk/blob/d1e76221d8e28824bb4791cb4ad8662d2ae9051e/x/gov/tags/tags.go#L8-L22)
- [Slashing tags](https://github.com/cosmos/cosmos-sdk/blob/d1e76221d8e28824bb4791cb4ad8662d2ae9051e/x/slashing/handler.go#L52)
- [Distribution tags](https://github.com/cosmos/cosmos-sdk/blob/develop/x/distribution/tags/tags.go#L8-L17)
- [Bank tags](https://github.com/cosmos/cosmos-sdk/blob/d1e76221d8e28824bb4791cb4ad8662d2ae9051e/x/bank/keeper.go#L193-L206)
:::
#### Matching a transaction's hash
You can also query a single transaction by its hash using the following command:
```bash
gaiacli query tx [hash]
```
### Staking
#### Set up a Validator