--- title: snrd query did description: Querying commands for the did module --- # snrd query did Querying commands for the did module ## Usage ```shell snrd query did [flags] ``` ```shell snrd query did [command] ``` ## Available Commands | Command | Description | |---------|-------------| | `credential` | Get a W3C verifiable credential | | `credentials` | List all W3C verifiable credentials | | `credentials-by-did` | Get all credentials (verifiable and WebAuthn) associated with a DID | | `document` | Get a W3C DID document by DID | | `documents` | List all W3C DID documents | | `documents-by-controller` | Get W3C DID documents by controller | | `params` | Query the current consensus parameters | | `resolve` | Resolve a DID to its document | | `service` | Get a service endpoint from a DID document | | `verification-method` | Get a verification method from a DID document | ## Flags for did ## Global Flags Transaction broadcasting mode (sync|async) The network chain ID Fees to pay along with transaction; eg: 10aatom Name or address of private key with which to sign 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 to determine the transaction fee (e.g. 10aatom) directory for config and data Select keyring's backend The logging format (json|plain) The logging level (trace|debug|info|warn|error|fatal|panic|disabled or '*:<level>,<key>:<level>') colored logs <host>:<port> to tendermint rpc interface for this chain out full stack trace on errors ## Examples ### Basic query ```shell snrd query did ``` ## See Also - [snrd query](./snrd_query.mdx) - Parent command