bcoin-org / bcoin

Javascript bitcoin library for node.js and browsers
https://bcoin.io
Other
3.01k stars 811 forks source link

Most commands not working on windows and no response when I try connecting node to Laravel project. #1076

Closed latehLarry closed 1 year ago

latehLarry commented 2 years ago

Hi wonderful project here, but I've got some problems. When I try running specific commands from cmd (Win 10) I get an error. For example when I try running the following command:

bcoin-cli --api-key=api-key

It returns:

Unrecognized command

and the same issue occurs with many other commands in docs. Secondly, I'm working on a Laravel 8 project, where when I try connecting to the default host and port, I get no response. Any help would be much appreciated. Thanks!

pinheadmz commented 2 years ago

bcoin-cli --api-key=api-key

this is not a command. What are you trying to do?

what is laravel8? Is it related to bcoin at all?

latehLarry commented 2 years ago

I'm using bcoin as fullnode to process payments on a website. The website is built in laravel ( a PHP framework). I want to set up the RPC(rpcuser, rpcpassword, ....) such that I can connect to the node. I tried connecting with 127.0.0.1:8332 but didn't get any response. Thanks!

pinheadmz commented 2 years ago

If you just want to set an API key there are several ways to do so, bcoin must be configured before launch:

https://github.com/bcoin-org/bcoin/blob/master/docs/configuration.md

latehLarry commented 2 years ago

Thanks, I believe I am to create a config file myself because I couldn't find one.

pinheadmz commented 2 years ago

Thanks, I believe I am to create a config file myself because I couldn't find one.

correct. Bcoin does not generate that for you.

masterchief164 commented 1 year ago

I think this issue can be closed.