aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.js')
-rw-r--r--src/api.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api.js b/src/api.js
index 23a1c2d..08f03b2 100644
--- a/src/api.js
+++ b/src/api.js
@@ -200,6 +200,11 @@ export class Api {
return this.#get(`/address/${address}/txs`);
}
+ // Full transaction (vin with prevouts, vout, status) — used for fee bumping.
+ getTx(txid) {
+ return this.#get(`/tx/${txid}`);
+ }
+
async feeRates() {
for (const host of this._hosts) {
if (host.cooldownUntil > Date.now()) continue;