🔲runes_rbfOrder

Therunes_rbfOrder method currently only supports Etch orders. Support for Mint orders will be added soon.

You can use the runes_rbfOrder method to speed up a Rune mint order or a Rune etch order, using the Replace-by-Fee (RBF) mechanism.

You can specify the order you wish to speed up, and the new fee rate to use for the mint/etch transactions, by passing a RbfOrderParams object to the method, with the below properties:

import { Wallet } from "sats-connect";

    const response = await Wallet.request('runes_rbfOrder', { 
      id: "ORDER_ID", 
      network?: "Mainnet",
      newFeeRate: 500 });

    if (response.status === 'success') {
      setFundTxId(response.result.fundRBFTransactionId);
    } else {
      console.error(response.error);
      alert('Error speeding up order. See console for details.');
    }
  };

The runes_rbfOrder method will:

  1. return a RBFOrderResponse object:

  1. Monitor the confirmation of the funding transaction required from your user to the funding address dedicated to processing the order.

  2. Replace the stuck mint/etch transactions with new transactions broadcast at a higher fee rate, signing with the funding address.

Note that the RBF mechanism can only add inputs to an existing transaction if they are already confirmed. Your user's RBF funding transaction must be confirmed before the new etch/mint transactions can be broadcast. The new transactions with increased fee rates will always lag the RBF funding transaction by at least 1 block.

You can then track the status of a Rune mint or etch order using the runes_getOrder method.

Last updated