You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`autocli` supports signing transactions with the keyring.
117
-
The [`cosmos.msg.v1.signer` protobuf annotation](https://github.com/cosmos/cosmos-sdk/blob/9dd34510e27376005e7e7ff3628eab9dbc8ad6dc/docs/build/building-modules/05-protobuf-annotations.md#L9) defines the signer field of the message.
117
+
The [`cosmos.msg.v1.signer` protobuf annotation](https://docs.cosmos.network/main/build/building-modules/protobuf-annotations) defines the signer field of the message.
118
118
This field is automatically filled when using the `--from` flag or defining the signer as a positional argument.
If not set to true, `AutoCLI` will not generate commands for the module if there are already commands registered for the module (when `GetTxCmd()` or `GetTxCmd()` are defined).
196
196
197
+
### Skip a command
198
+
199
+
AutoCLI automatically skips unsupported commands when [`cosmos_proto.method_added_in` protobuf annotation](https://docs.cosmos.network/main/build/building-modules/protobuf-annotations) is present.
200
+
201
+
Additionally, a command can be manually skipped using the `autocliv1.RpcCommandOptions`:
202
+
203
+
```go
204
+
*autocliv1.RpcCommandOptions{
205
+
RpcMethod: "Params", // The name of the gRPC service
206
+
Skip: true,
207
+
}
208
+
```
209
+
197
210
### Use AutoCLI for non module commands
198
211
199
212
It is possible to use `AutoCLI` for non module commands. The trick is still to implement the `appmodule.Module` interface and append it to the `appOptions.ModuleOptions` map.
To further enhance your CLI experience with Cosmos SDK-based blockchains, you can use `hubl`. `hubl` is a tool that allows you to query any Cosmos SDK-based blockchain using the new AutoCLI feature of the Cosmos SDK. With `hubl`, you can easily configure a new chain and query modules with just a few simple commands.
212
225
213
226
For more information on `hubl`, including how to configure a new chain and query a module, see the [Hubl documentation](https://docs.cosmos.network/main/tooling/hubl).
227
+
<<<<<<< HEAD
228
+
=======
229
+
230
+
# Off-Chain
231
+
232
+
Off-chain functionalities allow you to sign and verify files with two commands:
233
+
234
+
*`sign-file` for signing a file.
235
+
*`verify-file` for verifying a previously signed file.
236
+
237
+
Signing a file will result in a Tx with a `MsgSignArbitraryData` as described in the [Off-chain CIP](https://github.com/cosmos/cips/blob/main/cips/cip-X.md).
238
+
239
+
## Sign a file
240
+
241
+
To sign a file `sign-file` command offers some helpful flags:
242
+
243
+
```text
244
+
--encoding string Choose an encoding method for the file content to be added as msg data (no-encoding|base64|hex) (default "no-encoding")
245
+
--indent string Choose an indent for the tx (default " ")
246
+
--notEmitUnpopulated Don't show unpopulated fields in the tx
247
+
--output string Choose an output format for the tx (json|text (default "json")
248
+
--output-document string The document will be written to the given file instead of STDOUT
249
+
```
250
+
251
+
The `encoding` flag lets you choose how the contents of the file should be encoded. For example:
0 commit comments