polkadot-cli 0.14.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -0
  2. package/dist/cli.mjs +1250 -543
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -465,6 +465,24 @@ dot chain --help # same as `dot chain` — shows chain actions
465
465
  dot hash --help # same as `dot hash` — shows algorithms and examples
466
466
  ```
467
467
 
468
+ #### Item-level help
469
+
470
+ Use `--help` on any fully-qualified dot-path to see metadata detail and category-specific usage hints — all offline, no chain connection required:
471
+
472
+ ```bash
473
+ dot tx.System.remark --help # call args, docs, and tx options
474
+ dot query.System.Account --help # storage type, key/value info, and query options
475
+ dot const.Balances.ExistentialDeposit --help # constant type and docs
476
+ dot events.Balances.Transfer --help # event fields and docs
477
+ dot errors.Balances.InsufficientBalance --help # error docs
478
+ ```
479
+
480
+ For `tx` commands, omitting both `--from` and `--encode` shows this same help output instead of an error:
481
+
482
+ ```bash
483
+ dot tx.System.remark 0xdead # shows call help (no error)
484
+ ```
485
+
468
486
  ### Global options
469
487
 
470
488
  | Flag | Description |
@@ -541,6 +559,10 @@ Config and metadata caches live in `~/.polkadot/`:
541
559
 
542
560
  > **Warning:** `accounts.json` stores secrets (mnemonics and seeds) in **plain text**. Encrypted-at-rest storage is planned but not yet implemented. Keep appropriate file permissions (`chmod 600 ~/.polkadot/accounts.json`) and do not use this for high-value mainnet accounts.
543
561
 
562
+ ## Environment compatibility
563
+
564
+ The CLI works in Node.js, Bun, and sandboxed runtimes (e.g. LLM tool-use / MCP environments) that lack a native `globalThis.WebSocket`. WebSocket connections use the [`ws`](https://github.com/websockets/ws) package explicitly, so no global polyfill is required.
565
+
544
566
  ## Development
545
567
 
546
568
  Requires [Bun](https://bun.sh).