Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Error: Non-base58 character #251

Open
saritvakrat opened this issue Jul 18, 2018 · 0 comments
Open

Error: Non-base58 character #251

saritvakrat opened this issue Jul 18, 2018 · 0 comments

Comments

@saritvakrat
Copy link

saritvakrat commented Jul 18, 2018

Im generating BCH address + private key in test net, when I send it in the transaction I get 'Error: Non-base58 character'

Even if I convert the address to CashAddressFormat I still get the same error. Any idea how to work around this? I can't send transaction!

Code:
` const bch = require('bitcoincashjs'),
bitcore = require('bitcore-lib');

const Address = bch.Address;
const CashAddrFormat = Address.CashAddrFormat;
const privateKey = new bch.PrivateKey('testnet'),
//address = privateKey.toAddress('testnet');

 address = new Address('testnet');
 let bchAdd = address.toString(CashAddrFormat)`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant