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 71 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,555343 € 2,83%
aave
Aave (AAVE) 65,45 € 4,18%
the-graph
The Graph (GRT) 0,083906 € 4,70%
kusama
Kusama (KSM) 18,14 € 2,94%
waves
Waves (WAVES) 1,48 € 3,97%
dash
Dash (DASH) 25,95 € 2,84%
bitcoin
Bitcoin (BTC) 26.125,65 € 1,29%
ethereum
Ethereum (ETH) 1.575,24 € 3,99%
cardano
Cardano (ADA) 0,245493 € 2,57%
tether
Tether (USDT) 0,947597 € 0,09%
xrp
XRP (XRP) 0,485222 € 2,19%
solana
Solana (SOL) 22,16 € 2,55%
polkadot
Polkadot (DOT) 3,90 € 3,12%
usd-coin
USDC (USDC) 0,946650 € 0,05%
dogecoin
Dogecoin (DOGE) 0,058768 € 1,80%
uniswap
Uniswap (UNI) 4,23 € 4,02%
terra-luna
Terra Luna Classic (LUNC) 0,000059 € 4,18%
litecoin
Litecoin (LTC) 62,47 € 3,31%
chainlink
Chainlink (LINK) 7,04 € 7,56%
bitcoin-cash
Bitcoin Cash (BCH) 233,66 € 1,95%
algorand
Algorand (ALGO) 0,095917 € 4,62%
matic-network
Polygon (MATIC) 0,518362 € 3,52%
stellar
Stellar (XLM) 0,105794 € 2,21%
cosmos
Cosmos Hub (ATOM) 6,78 € 5,39%
filecoin
Filecoin (FIL) 3,15 € 3,51%
tron
TRON (TRX) 0,082888 € 3,04%
ethereum-classic
Ethereum Classic (ETC) 15,35 € 2,91%
dai
Dai (DAI) 0,945441 € 0,24%
tezos
Tezos (XTZ) 0,641883 € 3,81%
monero
Monero (XMR) 138,41 € 1,89%