Decode a TransactionCommon according to the version 1/2 P2P network
transaction format.
This function verifies that the provided bin contains only one transaction
and no additional data. To read a transaction from a specific location within
a Uint8Array, use readTransactionCommon.
Decode a TransactionCommon according to the version 1/2 P2P network transaction format.
This function verifies that the provided
bin
contains only one transaction and no additional data. To read a transaction from a specific location within aUint8Array
, use readTransactionCommon.For the reverse, see encodeTransactionCommon.