@cogcoin/client 1.1.12 → 1.1.13
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.
- package/README.md +7 -4
- package/dist/cli/commands/mining-runtime.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
# `@cogcoin/client`
|
|
2
2
|
|
|
3
|
-
`@cogcoin/client@1.1.
|
|
3
|
+
`@cogcoin/client@1.1.13` is the reference Cogcoin client package for applications that want a local wallet, durable SQLite-backed state, and a managed Bitcoin Core integration around `@cogcoin/indexer`. It publishes the reusable client APIs, the SQLite adapter, the managed `bitcoind` integration, and the first-party `cogcoin` CLI in one package.
|
|
4
4
|
|
|
5
5
|
Use Node 22 or newer.
|
|
6
6
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
9
|
-
Install
|
|
9
|
+
Install Cogcoin:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
curl -fsSL https://cogcoin.org/install.sh | bash
|
|
13
|
+
# or on Windows PowerShell:
|
|
14
|
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://cogcoin.org/install.ps1 | iex"
|
|
15
|
+
|
|
16
|
+
# `cogcoin init` starts automatically in an interactive terminal and continues into sync.
|
|
14
17
|
cogcoin address # Send 0.0015 BTC to address
|
|
15
18
|
cogcoin register <domainname> # 6+ character domain for 0.001 BTC
|
|
16
19
|
cogcoin anchor <domainname> # You can leave a founding message permanently on Bitcoin!
|
|
@@ -23,7 +23,9 @@ async function ensureMiningProviderSetup(options) {
|
|
|
23
23
|
paths: options.runtimePaths,
|
|
24
24
|
});
|
|
25
25
|
if (!setupReady) {
|
|
26
|
-
throw new Error(
|
|
26
|
+
throw new Error(options.prompter.isInteractive
|
|
27
|
+
? "Built-in mining provider is not configured. Run `cogcoin mine setup`."
|
|
28
|
+
: "mine_setup_requires_tty");
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
function sleep(ms, signal) {
|
package/package.json
CHANGED