Skip to content

How to derive address from xPub with BCH? #196

@j4nos

Description

@j4nos

I need to derive the first address belongs to an xPub.

I checked this documentation: https://github.com/Bitcoin-com/bitbox-sdk/blob/master/docs/hdnode.md#fromxpub

I tried this code:

bitbox.HDNode.fromXPub("xpub6D2vLmZcXc...").derivePath("m/44'/145'/0'/0");

but it returned this error:

not a master node

It seems bitbox.HDNode.fromXPub("xpub6D2vLmZcXc...")returns not master node?!

Do you have any idea how to derive in BCH?

It is important, I do no have any seed, only xPub!

Képernyőfotó 2021-03-16 - 20 24 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions