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:

--rpclisten=all interfaces on default port which is changed by --testnet
--rpclisten=0.0.0.0all IPv4 interfaces on default port which is changed by --testnet
--rpclisten=::all IPv6 interfaces on default port which is changed by --testnet
--rpclisten=:8334all interfaces on port 8334
--rpclisten=0.0.0.0:8334all IPv4 interfaces on port 8334
--rpclisten=[::]:8334all IPv6 interfaces on port 8334
--rpclisten=127.0.0.1:8334only IPv4 localhost on port 8334
--rpclisten=[::1]:8334only IPv6 localhost on port 8334
--rpclisten=:8336all interfaces on non-standard port 8336
--rpclisten=0.0.0.0:8336all IPv4 interfaces on non-standard port 8336
--rpclisten=[::]:8336all IPv6 interfaces on non-standard port 8336
--rpclisten=127.0.0.1:8337 --listen=[::1]:8334IPv4 localhost on port 8337 and IPv6 localhost on port 8334
--rpclisten=:8334 --listen=:8337all 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
  1. Copy rpc.cert to /usr/share/ca-certificates: # cp /home/user/.btcd/rpc.cert /usr/share/ca-certificates/btcd.crt
  2. Add btcd.crt to /etc/ca-certificates.conf: # echo btcd.crt >> /etc/ca-certificates.conf
  3. Update the CA certificate list: # update-ca-certificates

Comentários

Postagens mais visitadas deste blog

Introdução ao Empreendedorismo

Economia - Princípio da Utilidade Marginal Decrescente

Integrando seu site com o facebook