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 105 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,730808 3,12%
aave
Aave (AAVE) 78,19 0,03%
the-graph
The Graph (GRT) 0,222478 0,79%
kusama
Kusama (KSM) 26,92 0,10%
waves
Waves (WAVES) 2,15 3,91%
dash
Dash (DASH) 26,51 0,62%
bitcoin
Bitcoin (BTC) 53.824,82 4,64%
ethereum
Ethereum (ETH) 2.748,21 2,44%
cardano
Cardano (ADA) 0,417583 0,76%
tether
Tether (USDT) 0,936596 0,01%
xrp
XRP (XRP) 0,478163 1,37%
solana
Solana (SOL) 121,87 2,94%
polkadot
Polkadot (DOT) 6,45 5,85%
usd-coin
USDC (USDC) 0,937535 0,03%
dogecoin
Dogecoin (DOGE) 0,118248 4,57%
uniswap
Uniswap (UNI) 6,54 1,32%
terra-luna
Terra Luna Classic (LUNC) 0,000093 0,21%
litecoin
Litecoin (LTC) 74,69 0,38%
chainlink
Chainlink (LINK) 12,40 0,49%
bitcoin-cash
Bitcoin Cash (BCH) 390,45 3,27%
algorand
Algorand (ALGO) 0,166963 0,56%
matic-network
Polygon (MATIC) 0,642912 2,20%
stellar
Stellar (XLM) 0,102142 1,09%
cosmos
Cosmos Hub (ATOM) 8,11 2,00%
filecoin
Filecoin (FIL) 5,31 0,71%
tron
TRON (TRX) 0,113622 1,12%
ethereum-classic
Ethereum Classic (ETC) 23,60 0,71%
dai
Dai (DAI) 0,936480 0,02%
tezos
Tezos (XTZ) 0,857045 0,54%
monero
Monero (XMR) 114,54 0,70%