Instalação do BTCD, BCCTL
Instalar GoLang:
https://golang.org/
Instalar BTCD
https://github.com/btcsuite/btcd
Setar GOROOT , GOPATH e GOBIN
Depois de instalado o Go e o BTCD juntamente com o BCCTL:
Para inicializar o BTCD:
./btcd --testnet -u USUARIO -P SENHA --rpclisten=:PORTA
A PORTA padrão é a 18834, o usuário e senha, devem ser os mesmos do arquivo de $GOPATH\.BTCCD\BTCCD.conf
Mudando a porta RPC:
https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#ExampleGoApp
https://github.com/btcsuite/btcd
https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#getblock
Esta parte é muito importante:
https://golang.org/
Instalar BTCD
https://github.com/btcsuite/btcd
Setar GOROOT , GOPATH e GOBIN
Depois de instalado o Go e o BTCD juntamente com o BCCTL:
Para inicializar o BTCD:
./btcd --testnet -u USUARIO -P SENHA --rpclisten=:PORTA
A PORTA padrão é a 18834, o usuário e senha, devem ser os mesmos do arquivo de $GOPATH\.BTCCD\BTCCD.conf
Mudando a porta RPC:
--rpclisten= | all interfaces on default port which is changed by --testnet |
--rpclisten=0.0.0.0 | all IPv4 interfaces on default port which is changed by --testnet |
--rpclisten=:: | all IPv6 interfaces on default port which is changed by --testnet |
--rpclisten=:8334 | all interfaces on port 8334 |
--rpclisten=0.0.0.0:8334 | all IPv4 interfaces on port 8334 |
--rpclisten=[::]:8334 | all IPv6 interfaces on port 8334 |
--rpclisten=127.0.0.1:8334 | only IPv4 localhost on port 8334 |
--rpclisten=[::1]:8334 | only IPv6 localhost on port 8334 |
--rpclisten=:8336 | all interfaces on non-standard port 8336 |
--rpclisten=0.0.0.0:8336 | all IPv4 interfaces on non-standard port 8336 |
--rpclisten=[::]:8336 | all IPv6 interfaces on non-standard port 8336 |
--rpclisten=127.0.0.1:8337 --listen=[::1]:8334 | IPv4 localhost on port 8337 and IPv6 localhost on port 8334 |
--rpclisten=:8334 --listen=:8337 | all interfaces on ports 8334 and 8337 |
https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#ExampleGoApp
https://github.com/btcsuite/btcd
https://github.com/btcsuite/btcd/blob/master/docs/json_rpc_api.md#getblock
Esta parte é muito importante:
Ubuntu
- Copy rpc.cert to /usr/share/ca-certificates:
# cp /home/user/.btcd/rpc.cert /usr/share/ca-certificates/btcd.crt
- Add btcd.crt to /etc/ca-certificates.conf:
# echo btcd.crt >> /etc/ca-certificates.conf
- Update the CA certificate list:
# update-ca-certificates
Comentários
Postar um comentário