<p>I have decoded my raw transaction using <code>decoderawtransaction</code>, I got these value</p>

<pre><code>"size" =&gt; 259
"vsize" =&gt; 259
</code></pre>

<p>is that block size ?
if it does, is that byte or killo byte ?
I want to calculate miners fee based of block size</p>

CC BY-SA 3.0
2018-03-09T07:57:48.633Z
You probably want to calculate fees on transaction size, not block size. And size is the value you use as a basis, if you have non-segwit transaction. If segwit, use vsize and verify the underlying logic (quick search here in the forum!)
pebwindkraft
CC BY-SA 4.0
2018-10-01T23:00:23.393Z
possible duplicate of https://bitcoin.stackexchange.com/q/53623/5406
Murch
<bitcoind><raw-transaction>
decoded raw transaction size & vsize mean?
Billy Adelphia
# decoded raw transaction size & vsize mean?

(Asked by: username_0 on 2018-03-09)

I have decoded my raw transaction using `decoderawtransaction`, I got these value

```
"size" => 259
"vsize" => 259

```

is that block size ?
if it does, is that byte or killo byte ?
I want to calculate miners fee based of block size

**Tags:** bitcoind, raw-transaction

> **Comments:**
> **username_1**: You probably want to calculate fees on transaction size, not block size. And size is the value you use as a basis, if you have non-segwit transaction. If segwit, use vsize and verify the underlying logic (quick search here in the forum!)  
> **username_2**: possible duplicate of https://bitcoin.stackexchange.com/q/53623/5406  

---

## 0 answers

