accept-bitcoin icon indicating copy to clipboard operation
accept-bitcoin copied to clipboard

Error when trying sample script

Open rusthat opened this issue 8 years ago • 3 comments

1Hey there, i get the following error when i try one of the sample scripts:

hello 2MwoZu4iHWBbUFUY7ECNdadRjzzcGVeFiBY
/home/jay/workspace/btc-accept/node_modules/accept-bitcoin/lib/key.js:34
        network: this.settings.network === 'live' ? bitcore.networks.livenet : bitcore.networks.testnet
                                                                                               ^
TypeError: Cannot read property 'testnet' of undefined
    at new Key (/home/jay/workspace/btc-accept/node_modules/accept-bitcoin/lib/key.js:34:96)
    at Main.generateAddress (/home/jay/workspace/btc-accept/node_modules/accept-bitcoin/lib/index.js:58:15)
    at Main.generateAddress (/home/jay/workspace/btc-accept/node_modules/accept-bitcoin/lib/index.js:4:61)
    at Object.<anonymous> (/home/jay/workspace/btc-accept/index.js:4:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)

` This happens with every sample.

Thanks in Advance

rusthat avatar Mar 09 '17 00:03 rusthat

Same problem here.

andrewda avatar Nov 02 '17 01:11 andrewda

I didn't use this tool but I can guess this tool is not working because blockr API is not available now.

7flash avatar Dec 02 '17 10:12 7flash

Same problem here.

Juan-Pieterse avatar Mar 15 '18 10:03 Juan-Pieterse