Configuration options for creating the accelerated RBF transaction.
The base64-encoded PSBT of the accelerated RBF transaction.
const acceleratedTx = createAcceleratedRbfTransaction({
originalTx: originalTxHex,
availableInputs: availableUTXOs,
network: Network.MAINNET,
scriptType: 'P2WSH',
requiredSigners: 2,
totalSigners: 3,
targetFeeRate: '20',
absoluteFee: '1000',
changeIndex: 1,
changeAddress: 'bc1q...',
fullRBF: false,
strict: true
reuseAllInputs: true, // Default behavior, safer option
});
Creates an accelerated Replace-By-Fee (RBF) transaction.
This function creates a new transaction that replaces the original one with a higher fee, aiming to accelerate its confirmation. It preserves the original outputs except for the change output, which is adjusted to accommodate the higher fee.