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 9 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published.

eos
EOS (EOS) 1,28 3,57%
aave
Aave (AAVE) 85,48 3,03%
the-graph
The Graph (GRT) 0,164742 9,71%
kusama
Kusama (KSM) 73,59 5,80%
waves
Waves (WAVES) 6,50 4,34%
dash
Dash (DASH) 56,29 2,75%
bitcoin
Bitcoin (BTC) 28.443,18 3,02%
ethereum
Ethereum (ETH) 1.924,22 4,43%
cardano
Cardano (ADA) 0,519843 8,16%
tether
Tether (USDT) 0,961930 0,14%
xrp
XRP (XRP) 0,401129 4,03%
solana
Solana (SOL) 51,03 6,90%
polkadot
Polkadot (DOT) 9,78 8,40%
usd-coin
USD Coin (USDC) 0,960970 0,04%
dogecoin
Dogecoin (DOGE) 0,084234 3,15%
uniswap
Uniswap (UNI) 4,92 4,49%
terra-luna
Terra (LUNA) 0,000182 9,08%
litecoin
Litecoin (LTC) 67,99 0,77%
chainlink
Chainlink (LINK) 7,04 7,05%
bitcoin-cash
Bitcoin Cash (BCH) 191,07 3,92%
algorand
Algorand (ALGO) 0,443670 7,77%
matic-network
Polygon (MATIC) 0,657868 5,03%
stellar
Stellar (XLM) 0,130203 3,42%
cosmos
Cosmos Hub (ATOM) 10,27 8,22%
filecoin
Filecoin (FIL) 7,73 8,38%
tron
TRON (TRX) 0,067513 1,33%
ethereum-classic
Ethereum Classic (ETC) 19,93 4,06%
dai
Dai (DAI) 0,961930 0,23%
tezos
Tezos (XTZ) 1,70 4,98%
monero
Monero (XMR) 160,34 4,95%