Conectando nodo bitcoin con JavaScript – Backend con express (1/2)

Explico como conectar nuestro nodo bitcoin mediante JavaScript (nodejs) usando express como API.

El proyecto esta en este repositorio: https://github.com/biteskola/bitcoind-express

Enlaces usados en este video:

https://www.npmjs.com/package/express
https://www.npmjs.com/package/bitcoin-core

Comandos usados en este video:

Paso1:

– mkdir bitcoind-express
– cd bitcoind-express
– npm init –y
– npm install express
– touch index.js
– code .

Paso2:
– cd .bitcoin
– nano bitcoin.conf
– bitcoind
– bitcoin-cli getnewaddress “main” “bech32”
– bitcoin-cli generatetoaddress [number-blocks] [address]
– bitcoin-cli getblockcount

Paso3:
– npm install bitcoin-core

(Visited 104 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,702304 4,54%
aave
Aave (AAVE) 79,87 3,52%
the-graph
The Graph (GRT) 0,235156 4,74%
kusama
Kusama (KSM) 29,11 3,57%
waves
Waves (WAVES) 2,31 0,18%
dash
Dash (DASH) 27,04 6,29%
bitcoin
Bitcoin (BTC) 59.532,59 5,03%
ethereum
Ethereum (ETH) 2.869,09 3,22%
cardano
Cardano (ADA) 0,423941 4,20%
tether
Tether (USDT) 0,938222 0,02%
xrp
XRP (XRP) 0,469037 3,23%
solana
Solana (SOL) 130,35 7,92%
polkadot
Polkadot (DOT) 6,29 4,40%
usd-coin
USDC (USDC) 0,937285 0,03%
dogecoin
Dogecoin (DOGE) 0,139760 1,88%
uniswap
Uniswap (UNI) 6,74 6,95%
terra-luna
Terra Luna Classic (LUNC) 0,000095 2,59%
litecoin
Litecoin (LTC) 76,12 4,58%
chainlink
Chainlink (LINK) 12,70 4,95%
bitcoin-cash
Bitcoin Cash (BCH) 447,55 5,52%
algorand
Algorand (ALGO) 0,162243 5,54%
matic-network
Polygon (MATIC) 0,635071 2,42%
stellar
Stellar (XLM) 0,102344 2,49%
cosmos
Cosmos Hub (ATOM) 7,70 3,58%
filecoin
Filecoin (FIL) 5,60 5,02%
tron
TRON (TRX) 0,102077 0,75%
ethereum-classic
Ethereum Classic (ETC) 24,35 4,43%
dai
Dai (DAI) 0,937285 0,11%
tezos
Tezos (XTZ) 0,902004 3,57%
monero
Monero (XMR) 108,65 0,84%