@inversealtruism/csd-client 0.1.16 → 0.1.17

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/dist/index.cjs CHANGED
@@ -137,9 +137,9 @@ var CsdClient = class {
137
137
  tx(id) {
138
138
  return this.get(`/tx/${id}`);
139
139
  }
140
- // Default available=true: excludes immature/locked coinbase UTXOs so callers don't build txs spending
141
- // un-spendable outputs (the node would silently reject them) — audit TXB-1-SDK. Pass {available:false}
142
- // for the full set (e.g. balance display that wants to show locked coinbases).
140
+ // Default available=true: the node drops only outpoints already spent by a tx in its mempool, so a builder
141
+ // does not pick a pending-spent input; coinbase outputs are not filtered. {available:false} returns every
142
+ // unspent output, pending-spent ones included (e.g. a balance display).
143
143
  utxos(addr, opts = {}) {
144
144
  return this.get(`/utxos/${addr}${opts.available === false ? "" : "?available=true"}`);
145
145
  }
package/dist/index.js CHANGED
@@ -110,9 +110,9 @@ var CsdClient = class {
110
110
  tx(id) {
111
111
  return this.get(`/tx/${id}`);
112
112
  }
113
- // Default available=true: excludes immature/locked coinbase UTXOs so callers don't build txs spending
114
- // un-spendable outputs (the node would silently reject them) — audit TXB-1-SDK. Pass {available:false}
115
- // for the full set (e.g. balance display that wants to show locked coinbases).
113
+ // Default available=true: the node drops only outpoints already spent by a tx in its mempool, so a builder
114
+ // does not pick a pending-spent input; coinbase outputs are not filtered. {available:false} returns every
115
+ // unspent output, pending-spent ones included (e.g. a balance display).
116
116
  utxos(addr, opts = {}) {
117
117
  return this.get(`/utxos/${addr}${opts.available === false ? "" : "?available=true"}`);
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inversealtruism/csd-client",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -27,12 +27,12 @@
27
27
  "README.md"
28
28
  ],
29
29
  "dependencies": {
30
- "@inversealtruism/csd-codec": "0.1.16"
30
+ "@inversealtruism/csd-codec": "0.1.17"
31
31
  },
32
32
  "license": "MIT",
33
33
  "sideEffects": false,
34
34
  "devDependencies": {
35
- "@inversealtruism/csd-vectors": "0.1.15"
35
+ "@inversealtruism/csd-vectors": "0.1.16"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"