Skip to content

bchLib.PrivateKey is not a constructor #35

@dovancao

Description

@dovancao

Hi there
I try use BCH-lib to create a private key
This is my code

// create transaction: sender send BCH to receiver
let privateKey = new bchLib.PrivateKey('testnet');
console.log(privateKey)

But I got this issue

let privateKey = new bchLib.PrivateKey('testnet');
                 ^
TypeError: bchLib.PrivateKey is not a constructor

How can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions