I want to calculate how many % of a block, and thus, transactions that are witness data. I need to calculate the size of the witness data in bytes in every transaction. And as I understand it, I cannot calculate this using existing size variables like vsize.
Will a loop through the "txinwitness" array of hex and do a byte length calculation on every one be enough? (Using NodeJS here)