0

Will it affect the fees in any way when one sends money to an address generated from zpub master public key compared the xpub?

What might also be part of this question is, understanding whether it is the master public key or the address type that affects the fee; and if it is the latter, then whether it is possible to generate both higher-fee and lower-fee addresses from both types of master public keys.

Meglio
  • 289
  • 1
  • 9

1 Answers1

2

No. Fees depend on the transaction size. The transaction size is affected by the output script ("address", broadly speaking) used, but not by the encoding of the extended key used to generate key(s) used in this script.

However, as Pieter mentions in the comments, extended keys encoded with the zpub prefix usually implicitly indicate derived keys should be used for P2WPKH addresses. It is the smallest standard output type. If by the same token you implicitly associate xpubs with P2PKH addresses, then yes by using P2WPKH addresses you save 3 bytes per output (and the receiver does save a lot more when they in turn spend this coin).

Antoine Poinsot
  • 8,334
  • 2
  • 17
  • 34