Files
sonr/docs/reference/commands/snrd_keys_export.mdx
Prad NukalaandGitHub 13e6c3e84d Master (#1262)
* clear

* feat: Add everything

* fix: Commenht
2025-10-03 14:45:52 -04:00

103 lines
2.6 KiB
Plaintext

---
title: snrd keys export
description: Export a private key from the local keyring in ASCII-armored encrypted format.
---
# snrd keys export
Export a private key from the local keyring in ASCII-armored encrypted format.
## Usage
```shell
snrd keys export <name> [flags]
```
## Flags
<ParamField path="help" type="string">
for export
</ParamField>
<ParamField path="unarmored-hex" type="string">
unarmored hex privkey. Requires --unsafe.
</ParamField>
<ParamField path="unsafe" type="string">
unsafe operations. This flag must be switched on along with all unsafe operation-specific options.
</ParamField>
## Global Flags
<ParamField path="broadcast-mode" type="string" default="sync">
Transaction broadcasting mode (sync|async)
</ParamField>
<ParamField path="chain-id" type="string">
Specify Chain ID for sending Tx
</ParamField>
<ParamField path="fees" type="string">
Fees to pay along with transaction; eg: 10aatom
</ParamField>
<ParamField path="from" type="string">
Name or address of private key with which to sign
</ParamField>
<ParamField path="gas-adjustment" type="float" default="1">
adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored
</ParamField>
<ParamField path="gas-prices" type="string">
Gas prices to determine the transaction fee (e.g. 10aatom)
</ParamField>
<ParamField path="home" type="string" default="/Users/prad/.sonr">
The application home directory
</ParamField>
<ParamField path="keyring-backend" type="string" default="os">
Select keyring's backend (os|file|test)
</ParamField>
<ParamField path="keyring-dir" type="string">
The client Keyring directory; if omitted, the default 'home' directory will be used
</ParamField>
<ParamField path="log_format" type="string" default="plain">
The logging format (json|plain)
</ParamField>
<ParamField path="log_level" type="string" default="info">
The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:&lt;level&gt;,&lt;key&gt;:&lt;level&gt;')
</ParamField>
<ParamField path="log_no_color" type="string">
colored logs
</ParamField>
<ParamField path="node" type="string" default="tcp://localhost:26657">
&lt;host&gt;:&lt;port&gt; to tendermint rpc interface for this chain
</ParamField>
<ParamField path="output" type="string" default="text">
Output format (text|json)
</ParamField>
<ParamField path="trace" type="string">
out full stack trace on errors
</ParamField>
## Examples
### Basic usage
```shell
snrd keys export
```
## See Also
- [snrd keys](./snrd_keys.mdx) - Parent command