aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api.js b/src/api.js
index 20041e2..1f57353 100644
--- a/src/api.js
+++ b/src/api.js
@@ -209,6 +209,12 @@ export class Api {
return this.#get(`/address/${address}/utxo`);
}
+ // Spend status of one output: { spent, txid (spender), vin, status }. Reports
+ // a spend even by an unconfirmed tx — used to tell if a gift was already claimed.
+ outspend(txid, vout) {
+ return this.#get(`/tx/${txid}/outspend/${vout}`);
+ }
+
addressTxs(address) {
return this.#get(`/address/${address}/txs`);
}