Files
sonr/docs/reference/commands/snrd_query_dwn.mdx
T

73 lines
2.6 KiB
Plaintext
Raw Normal View History

2025-10-03 14:45:52 -04:00
---
title: snrd query dwn
description: Querying commands for the dwn module
---
## Usage
```shell
snrd query dwn [flags]
```
```shell
snrd query dwn [command]
```
## Available Commands
| Command | Description |
|---------|-------------|
| `cid` | Execute the CID RPC method |
| `encrypted-record` | Execute the EncryptedRecord RPC method |
| `encryption-status` | Execute the EncryptionStatus RPC method |
| `ipfs` | Execute the IPFS RPC method |
| `params` | Query the current consensus parameters |
| `permissions` | Query DWN permissions for a target |
| `protocol` | Query a specific DWN protocol |
| `protocols` | Query DWN protocols for a target |
| `record` | Query a specific DWN record |
| `records` | Query DWN records for a target |
| `vault` | Query a specific vault |
| `vaults` | Query vaults by owner |
| `vrf-contributions` | Execute the VRFContributions RPC method |
## Flags
2026-09-02 16:53:38 -04:00
<TypeTable
type={{
"help": { type: "string", description: "for dwn" },
}}
/>
2025-10-03 14:45:52 -04:00
## Global Flags
2026-09-02 16:53:38 -04:00
<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 '*:&lt;level&gt;,&lt;key&gt;:&lt;level&gt;')" },
"log_no_color": { type: "string", description: "colored logs" },
"node": { type: "string", default: "tcp://localhost:26657", description: "&lt;host&gt;:&lt;port&gt; to tendermint rpc interface for this chain" },
"trace": { type: "string", description: "out full stack trace on errors" },
}}
/>
2025-10-03 14:45:52 -04:00
## Examples
### Basic query
```shell
snrd query dwn
```
## See Also
2026-09-02 16:53:38 -04:00
- [snrd query](./snrd_query) - Parent command