mirror of
https://github.com/sonr-io/sonr.git
synced 2026-09-16 23:16:25 +00:00
58 lines
2.5 KiB
Plaintext
58 lines
2.5 KiB
Plaintext
---
|
|
title: snrd query tx
|
|
description: Query for a transaction by hash or address/sequence combination
|
|
---
|
|
|
|
Example:
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
snrd query tx --type=[hash|acc_seq|signature] [hash|acc_seq|signature] [flags]
|
|
```
|
|
|
|
## Flags
|
|
|
|
<TypeTable
|
|
type={{
|
|
"grpc-addr": { type: "string", description: "the gRPC endpoint to use for this chain" },
|
|
"grpc-insecure": { type: "string", description: "gRPC over insecure channels, if not the server must use TLS" },
|
|
"height": { type: "integer", description: "Use a specific height to query state at (this can error if the node is pruning state)" },
|
|
"help": { type: "string", description: "for tx" },
|
|
"node": { type: "string", default: "tcp://localhost:26657", description: "<host>:<port> to CometBFT RPC interface for this chain" },
|
|
"output": { type: "string", default: "text", description: "Output format (text|json)" },
|
|
"type": { type: "string", default: "hash", description: "The type to be used when querying tx, can be one of \"hash\", \"acc_seq\", \"signature\"" },
|
|
}}
|
|
/>
|
|
|
|
## Global Flags
|
|
|
|
<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 '*:<level>,<key>:<level>')" },
|
|
"log_no_color": { type: "string", description: "colored logs" },
|
|
"trace": { type: "string", description: "out full stack trace on errors" },
|
|
}}
|
|
/>
|
|
|
|
## Examples
|
|
|
|
### Basic query
|
|
|
|
```shell
|
|
snrd query tx
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [snrd query](./snrd_query) - Parent command
|