bitcore-wallet-service icon indicating copy to clipboard operation
bitcore-wallet-service copied to clipboard

Creating wallet NOT AUTHORIZED : Copayer not found

Open haydencarlson opened this issue 6 years ago • 2 comments

I'm using bws for bitcoin cash. It was working fine before, now when I try to generate an address for a wallet I just created it gives this error.

{"code":"NOT_AUTHORIZED","message":"Copayer not found"}

I'm creating a new wallet everytime I try to create an address. I'm using my own local node to connect to.

haydencarlson avatar Aug 03 '18 16:08 haydencarlson

Thank

SubbieMasse avatar Sep 20 '18 01:09 SubbieMasse

@haydencarlson I was debugging similar issue for Bitcoin recently. It happens when Copayer ID is not found in MongoDB. To create Copayer ID for Bitcoin Cash, you have to add bch prefix to your account extended public key: https://github.com/bitpay/bitcore-wallet-client/blob/master/lib/common/utils.js#L165

pavel-main avatar Sep 20 '18 08:09 pavel-main