1

Suppose I have a signed hex encoded transaction (as returned by RPC call signrawtransaction), how to get the size, in bytes, for purpuses of calculating if included transaction fee is acceptable by the official client? Can I simply get the size in bytes of the hexadecimal decoded to binary?

2

Can I simply get the size in bytes of the hexadecimal decoded to binary?

Yes. The hex encodes the raw bytes of the transaction that will be broadcasted throughout the network. Assuming the transaction is fully signed and ready to be broadcasted, the size is the number of bytes, or the length of the string divided by 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.