<blockquote>
<p>is there any way to dictate which UTXO the fees come from?</p>
</blockquote>
<p>Some wallets have a feature named <a href="https://bitcoin.stackexchange.com/q/37486/13866">&quot;coin control&quot;</a>.</p>
<p>The fee is simply the difference between input amount and output amount. There is no correspondence between individual inputs and individual outputs when there are multiple of either - the notion of fees coming from specifically one of several inputs simply has no meaning in the Bitcoin network.</p>
<p>The Ordinals project makes an arbitrary assignment according to its own off-chain rules. This is based on the ordering of inputs and outputs in the transaction - but this order has no meaning in the Bitcoin network and can be random. I guess you would have to manually construct a transaction that makes this order correspond to the external Ordinals rules you want to apply.</p>

CC BY-SA 4.0
2023-02-07T10:42:14.297Z
2023-02-07T11:01:21.227Z
2023-02-07T11:01:21.227Z
RedGrittyBrick
<p>According to the <a href="https://docs.ordinals.com/faq.html#how-does-ordinal-theory-work" rel="nofollow noreferrer">Ordinals FAQ</a>, the ordinals are assigned first-in-first-out. Each satoshi in the inputs is assigned in order to each first available satoshi in the outputs. Any satoshis from the inputs not assigned to outputs are assigned to the fees after that.</p>
<p>For an example, let’s assume a transaction has two inputs of three and four sats, two outputs of four and two sats, and one sat going to fee. Let’s assume the ordinals of the input sats are [e f g] and [a b c d].</p>
<pre><code> Inputs         Outputs

[e f g]     ↦  [e f g a]
[a b c d]      [b c]
                            last sats of last input go to fee ⇒ [d]
</code></pre>

CC BY-SA 4.0
2023-02-07T18:23:02.243Z
2023-02-07T18:23:02.243Z
Murch
<p>I have a UTXO with an inscription that is now valuable, but I accidentally received it into a non-Taproot (bech32, native segwit) wallet.</p>
<p>I'm now aware that because of this, I can't use Ordinal theory to control which satoshis are being spent when I send this transaction.</p>
<p>What I'm wondering is, is there any way to dictate which UTXO the fees come from? This was accepted into a clean wallet, so it's currently the only UTXO. If I add another UTXO, would the fees come from that instead? Thus ensuring that the first UTXO is fully received by the receiver.</p>
<p>I'm aware of one person who was in the same situation. He sent two more UTXOs of 100k satoshis into the same wallet, and then paid the minimum possible fee while keeping bytes low, then pushed his transaction through the VIA btc transaction accelerator. The fee was about ~250 sats, so he had a ~250/200000 chance of failure. It went through successfully.</p>
<p>I'm mostly curious if there's anything else I can do to increase my odds here, and if the logic of what I was told above is sound. It seems obvious that the sats I'm sending are the same ones that are being received by the receiver, they're not mixed within blocks, and that the only risk is that my inscription happens to be attached to one of the satoshi's within the fee. I'm also curious if miners could &quot;snipe&quot; the inscription, but I'm assuming that's not possible as well.</p>

CC BY-SA 4.0
2023-02-07T08:43:32.643Z
What wallet are you using? A wallet with coin control should let you pick what utxos to spend from and where the fee should be deducted from
sr_gi
<transaction-fees><utxo><ordinals>
Do know which UTXO fees are chosen from? Need help on an inscription in a native segwit wallet
souper fooly
# Do know which UTXO fees are chosen from? Need help on an inscription in a native segwit wallet

(Asked by: username_0 on 2023-02-06)

I have a UTXO with an inscription that is now valuable, but I accidentally received it into a non-Taproot (bech32, native segwit) wallet.

I'm now aware that because of this, I can't use Ordinal theory to control which satoshis are being spent when I send this transaction.

What I'm wondering is, is there any way to dictate which UTXO the fees come from? This was accepted into a clean wallet, so it's currently the only UTXO. If I add another UTXO, would the fees come from that instead? Thus ensuring that the first UTXO is fully received by the receiver.

I'm aware of one person who was in the same situation. He sent two more UTXOs of 100k satoshis into the same wallet, and then paid the minimum possible fee while keeping bytes low, then pushed his transaction through the VIA btc transaction accelerator. The fee was about ~250 sats, so he had a ~250/200000 chance of failure. It went through successfully.

I'm mostly curious if there's anything else I can do to increase my odds here, and if the logic of what I was told above is sound. It seems obvious that the sats I'm sending are the same ones that are being received by the receiver, they're not mixed within blocks, and that the only risk is that my inscription happens to be attached to one of the satoshi's within the fee. I'm also curious if miners could "snipe" the inscription, but I'm assuming that's not possible as well.

**Tags:** transaction-fees, utxo, ordinals

> **Comments:**
> **username_1**: What wallet are you using? A wallet with coin control should let you pick what utxos to spend from and where the fee should be deducted from  

---

## 2 answers

### Answer by username_2 on 2023-02-07. Score: 3

> is there any way to dictate which UTXO the fees come from?

Some wallets have a feature named ["coin control"](https://bitcoin.stackexchange.com/q/37486/13866).

The fee is simply the difference between input amount and output amount. There is no correspondence between individual inputs and individual outputs when there are multiple of either - the notion of fees coming from specifically one of several inputs simply has no meaning in the Bitcoin network.

The Ordinals project makes an arbitrary assignment according to its own off-chain rules. This is based on the ordering of inputs and outputs in the transaction - but this order has no meaning in the Bitcoin network and can be random. I guess you would have to manually construct a transaction that makes this order correspond to the external Ordinals rules you want to apply.


---

### Answer by username_3 on 2023-02-07. Score: 3

According to the [Ordinals FAQ](https://docs.ordinals.com/faq.html#how-does-ordinal-theory-work), the ordinals are assigned first-in-first-out. Each satoshi in the inputs is assigned in order to each first available satoshi in the outputs. Any satoshis from the inputs not assigned to outputs are assigned to the fees after that.

For an example, let’s assume a transaction has two inputs of three and four sats, two outputs of four and two sats, and one sat going to fee. Let’s assume the ordinals of the input sats are [e f g] and [a b c d].

```
 Inputs         Outputs

[e f g]     ↦  [e f g a]
[a b c d]      [b c]
                            last sats of last input go to fee ⇒ [d]

```


---

