We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8831836 commit a64d44dCopy full SHA for a64d44d
packages/bitcore-node/docs/api-documentation.md
@@ -280,6 +280,8 @@ curl -v localhost:3000/api/BTC/mainnet/address/12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJ
280
281
GET `/api/BTC/mainnet/address/:address/?unspent=true`
282
283
+**if you want to filter out conflicting utxos, you can add `excludeConflicting=true` to the end of the url.**
284
+
285
<details>
286
<summary><b>Response</b></summary>
287
<br>
packages/bitcore-node/src/providers/chain-state/internal/internal.ts
@@ -69,6 +69,9 @@ export class InternalStateProvider implements IChainStateService {
69
if (args.unspent) {
70
query.spentHeight = { $lt: SpentHeightIndicators.minimum };
71
}
72
+ if (args.excludeConflicting) {
73
+ query.mintHeight = { $gt: SpentHeightIndicators.conflicting };
74
+ }
75
return query;
76
77
0 commit comments