Transactions
Thexyz tx command group provides transaction-related operations.
Transaction History
View recent transactions for an address:Example
Command Options
| Flag | Description | Default |
|---|---|---|
--key | Key name from keyring | - |
--limit | Number of transactions | 10 |
--output, -o | Output format (table/json) | table |
--node | RPC endpoint override | config |
Limit Results
JSON Output
For scripting:Transaction Types
Common transaction types you’ll see:| Type | Description |
|---|---|
/cosmos.bank.v1beta1.MsgSend | Native token transfer |
/cosmos.staking.v1beta1.MsgDelegate | Delegation to validator |
/cosmos.staking.v1beta1.MsgUndelegate | Undelegation from validator |
/cosmwasm.wasm.v1.MsgStoreCode | Upload contract code |
/cosmwasm.wasm.v1.MsgInstantiateContract | Create contract instance |
/cosmwasm.wasm.v1.MsgExecuteContract | Execute contract method |
/cosmos.gov.v1beta1.MsgVote | Governance vote |
View Transaction Details
For detailed transaction information, usexyzd:
Examples
Monitor Activity
Export to CSV
Filter by Type
Count Transactions
Understanding Transaction Flow
Transaction Status
Transactions go through these states:| State | Description |
|---|---|
| Pending | In mempool, not yet in block |
| Included | In a block, but not finalized |
| Finalized | Block confirmed (instant on XYZ Chain) |
| Failed | Execution error (still recorded) |
Troubleshooting
No transactions found
No transactions found
- Account may have no transaction history
- Check address/key is correct
- Increase limit:
--limit 50
Missing recent transaction
Missing recent transaction
- Node may be syncing
- Wait a few blocks
- Check node status:
curl http://localhost:26657/status
Connection error
Connection error