Generally I see that bip32 derivation paths are something like m/1/2/3/4, etc

How deep is allowed? Is there a limit on how deep the tree can go?

1 Answer 1


A path can have, at most, 256 elements, including the master. This limitation comes from the extended public key serialization format's depth field. This field is a single byte which means it only has 256 possible values.

  • I dont get it. What happens if I try to get 'm/44/0/0/666' address? Dec 18, 2019 at 23:03
  • Nothing happens, that's a valid path. Depth is the number of elements; basically the number of /'s. The actual value of each element can be a at most 2^31 - 1.
    – Ava Chow
    Dec 19, 2019 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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