bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
22 lines (21 loc) • 1.02 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.abandonTransaction = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* abandontransaction "txid"
*
* Mark in-wallet transaction <txid> as abandoned
* This will mark this transaction and all its in-wallet descendants as abandoned which will allow
* for their inputs to be respent. It can be used to replace "stuck" or evicted transactions.
* It only works on transactions which are not included in a block and are not currently in the mempool.
* It has no effect on transactions which are already abandoned.
*
*/
function abandonTransaction(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'abandontransaction', params: methodParams }, bitcoind);
}
exports.abandonTransaction = abandonTransaction;