Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node.js]

The tag has no usage guidance.

1
vote
1answer
21 views

can not access via RPC to litecoin node

I set up a litecoin full node in AWS. I opened ports 22, 80 and 9332. Also from my laptop I cloned this project https://github.com/janoside/btc-rpc-explorer I executed on my local but unfortunately I ...
-2
votes
0answers
15 views

How to clone and create an altcoin using electron & electron.js [on hold]

Is there a guide or method for cloning or making an altcoin on the electron.js framework? I know I can use npn to download a bitcoin client for electron.js but I don't see a way to download a ...
0
votes
1answer
88 views

RPC command sendfrom is giving Transaction too large error

I made discord bot for fun with tips, soak and rains of altcoin. When I try to send large amount through the same bot. It is giving me "Transaction too large" error. I found the reason here: ...
1
vote
1answer
363 views

How do I interact with Bitcoin Core from NodeJS? [closed]

I am new to the Bitcoin world. I have installed Bitcoin Core on a Windows machine and am running the full node. I want to develop a nodejs app that would be running on the same machine interacting ...
0
votes
1answer
137 views

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fromSeedBuffer' of undefined

I am getting Getting error at this line var root = bitcoin.HDNode.fromSeedBuffer(seed); UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fromSeedBuffer' of undefined Here is ...
0
votes
1answer
25 views

Extracting Bitcoin historical ticker data by setting up Bitcoin Node?

How do I extract the ticker data (historical values such as day price, day open, day close etc) by setting up a Bitcoin Node? Bitcoin Node is setup using Bitcore.io All blocks are syncing right now, ...
0
votes
0answers
33 views

sending & receiving bitcoin transactions - Semi - Automated

Hi I'm looking for a way to send transactions and track incoming transactions using some kind of software&/database/code that will let me choose how much to send dependant on preset formulas from ...
0
votes
0answers
26 views

jsonRPCClient bitcoin not generating transaction id however new address is generated

I'm using jsonRPClient to connect to my, I'm able to generate new wallet address using getnewaddress however when i make a transfer using sendtoaddress transaction id is not generated. sendtoaddress ...
1
vote
1answer
214 views

How to send Bitcoin from one addresss to another using nodejs

which api i can use to tranfer BTC from one address to another. I have knowledge about bitcoin-transaction api but it does not allow to setup fees. We have try this api but it cost too much high for ...
0
votes
1answer
247 views

How do I specify many utxo in a bitcoin cash transaction?

I want to create a Tx with bitcoincashjs: create-a-transaction But how do I specify multi inputs: from(utxo) and multi outputs: to ?
0
votes
1answer
39 views

How to create (many address)/receive/send bitcoin without download blockchain?

I need to create a lot of address on my wallet to get bitcoin. Check balance and make transfers. I do not have a hard disk of 200 GB, can I use bitcoin without downloading the blockchain? Need ...
0
votes
0answers
164 views

Get value from leveldb bitcoin using node.js?

I request information about the block 100001 using leveldb and node js. Below is my code example. var level = require('level'); var db = level('E:/download/blockchain/block'); var str = '...
1
vote
1answer
395 views

Creating Testnet Bitcoin Transaction with bitcoinjs-lib

I'm trying to setup a simple bitcoin testnet transaction using the bitcoinjs-lib npm module. It seems like I'm building the transaction correctly, and I receive the hex code but I think I'm unable to ...
1
vote
1answer
76 views

Transaction fee in Bitcored

Does the transaction fee of bitcored or bitcoind change everyday? Am I required to set transaction fee of bitcoind by using settxfee method?
0
votes
0answers
101 views

i can sync only “headers block”?

My question about the "bitcoin core", i need "header blocks" only, i can sync only "headers block"? in other words i do not need "transaction data" because its size is very large. Is there any ...
1
vote
3answers
851 views

get the real last block

I have this code: from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException import logging rpc_user='-------' #User name is hidden rpc_password='-------' #Password hidden logging....
0
votes
1answer
80 views

Calculate Any Address Balance Using Bitcoinn RPC getrawtransaction

I'm trying to use getrawtransaction to get transaction details (for any address) from my local blockchain. What I have is an address in readable format, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" but the ...
0
votes
0answers
42 views

Carlos Guerrero bitcoin-miner question

I'm using the bitcoin-miner developed by Carlos Guerrero to learn more about mining and the blockchain. This has been a tremendous resource and many thanks to Mr. Guerrero for his time and efforts. ...
2
votes
1answer
696 views

Bitcoin RPC ECONNREFUSED

Trying to RPC my local active Bitcoin Full Node, but getting ECONNREFUSED on client.getBalance. Am I missing additional configuration? Is there a better RPC wrapper to use? Any advice or working ...
0
votes
1answer
340 views

Is there a way to query the blockchain locally if I am running a full node?

I'm running a full node on my PC and wondering if there is a way to query the blockchain locally via NodeJS instead of going through blockchain.info? It is very inefficient/slow to run queries through ...
0
votes
1answer
618 views

Can I use walletnotify or blocknotify remotely with a NodeJS application?

I'd like to get information from my bitcoin node running on a cloud server to be used to make changes in my NodeJS app running on my computer. So, in the bitcoin.conf file, should I have something ...
0
votes
0answers
230 views

Bitcoin core ESOCKETTIMEDOUT on nodejs

I tries simply use bitcoin-core and always get Unhandled rejection Error: ESOCKETTIMEDOUT code: bitcoin.getDifficulty().then ((n) =>{ res.send(201, n); }); ...
0
votes
0answers
379 views

How do I remotely connect to a bitcoin node with bitcoin-core? JS

I've been at this for a while and can't seem to connect despite using the same code as seen in the examples. Here's what I have: const Client = require('bitcoin-core'); const client = new Client( { ...
1
vote
0answers
46 views

Using blockcypher BitcoinJs at clientside is secure or not?

I am trying to create new transaction using bitcoinjs at client side. Is it a secure way to create a transaction from Client side, which includes curl call. Scenario, if I start from creating the new ...
0
votes
0answers
490 views

How to get all transactions of address with bitcoin api in node.js?

I want to find all transactions of address in regtest. How it is possible to do? I have this solution, but I get response (201) before for ends. I think it's bitcoin timeout false. bitcoin....
1
vote
2answers
89 views

Error: Unknown network starting a bcoin node

Getting an error Unknown Network running a bcoin node, but I'm not sure what's causing it since I'm defining the network very quickly. Error Message: (node:10579) UnhandledPromiseRejectionWarning: ...
0
votes
1answer
204 views

Litecoin: why getBlockHash is not a function?

I have the following code: var litecoin = require('litecoin'); var clientLTC = new litecoin.Client({...}); ... clientLTC.getBlockCount(function(err, blockIndex) { console.log('blockIndex: ' + ...
2
votes
3answers
760 views

Litecoin litecore-lib receive UTXO and current balance

I have coded NodeJS script for bitcoin for send all balance from by address to some other one. Now I want to do this for the litecoin. For bitcoin I have used bitcore-lib and bitcore-explorers libs to ...
0
votes
0answers
103 views

Bitcoin payment PHP(or other web techonology) SDK

I have gone through most of the similar questions however none of them was able to fully answer my questions. I'm new to bitcoin technology, but looks like a good solution for accepting payments via ...
1
vote
3answers
2k views

bitcoin setup using nodejs

I have to to use bitcoin api using nodejs. but I cannot understand from where I have to start.Search some node module like bitcoin-core and bitcoin. Can anyone describe the step how can I set up ...
1
vote
1answer
276 views

bcoin chainldb Resource Temporarily unavailable

I'm trying to run a script that retrieves transactions from the blockchain. When I run the script though I get the following error: Error: IO error: lock /home/bucko/.bcoin/testnet/chain.ldb/LOCK: ...
2
votes
1answer
169 views

Bcoin - Database backend not found

/root/BCoin/node_modules/bcoin/lib/db/backends.js:16 throw new Error('Database backend "' + name + '" not found.'); ^ Error: Database backend "leveldown" not found. at Object.get (/root/...
6
votes
1answer
1k views

How to watch for the transactions over blockchain via nodejs?

I am using this bitcore npm package. https://bitcore.io/api/lib And i want to monitor all the transactions over the blockchain, and read the input address, output address and amount associated with ...
0
votes
1answer
2k views

How to do sendRawTransaction to bitcoind JSON-RPC using bitcoin-core package in nodejs

I am trying to do sendrawtransaction <transaction_hex> from nodejs using bitcoin-core package i did npm install bitcoin-core --save i already have latest bitcoind setup and running with ...
2
votes
2answers
419 views

how to use bitcoin blockchain be useful to authenticate documents?

have read a little about blockchains and found there is lot of blockchain npm libraries available. How can I take benefit of the bitcoin blockchain to authenticate documents : to obtain a proof a ...
2
votes
1answer
739 views

Authenticating with npm nodejs bitcoin-core module

https://github.com/seegno/bitcoin-core After using npm to install, I get an auth error when I try to run it. The github repo isn't clear how to auth... const Client = require('bitcoin-core'); const ...
0
votes
0answers
480 views

NodeJS web app connect to node

I am making a web app that would act as an advanced blockchain explorer with a subset of the features. How do I start a node, and connect to it, and then receive data about new blocks, and ...
0
votes
1answer
382 views

Invalid Argument Error when broadcasting a transaction with Bitcore

When I try to broadcast a transaction, I'm having this error: /home/aziz/node_modules/bitcore-explorers/node_modules/bitcore-lib/lib/util/preconditions.js:14 throw new errors.InvalidArgument(...
1
vote
0answers
281 views

Decrypting BitcoinJ/MultiBit key (scrypt/aes-256) from protobuf with NodeJS

I'm trying to decrypt an encrypted private key from an encrypted Multibit Classic .wallet file but the resulting public key / wif doesn't match the original. Here is my code: 'use strict' var fs = ...
2
votes
1answer
252 views

Bitcoin HD wallet forwarder without depending on a 3rd party?

I want to setup a REST API service that does 3 simple things. Ask it to generate a new address (ideally from a BIP32 xpub key tree) Notify my server application when a deposit and confirmation X ...
1
vote
1answer
244 views

OP_EQUALVERIFY Problem

I'm making a full-service wallet, I already made the UTXOs selection algorithm and now I want to push the transaction hex bytes. It works when I push only a transaction with only 1 input, but if I try ...
7
votes
1answer
699 views

Which language has better Bitcoin API experience, C# or Node.js?

At the moment it seems to me on the .NET side NBitcoin would compete with Bitcoin.js on the other. Update: I decided on NBitcoin. It has a great book to learn from. Note I will not form opinion on my ...
2
votes
1answer
530 views

Using Bitcore API for Escrow

Has anyone experience using the Bitcore API for Escrow purposes with node.js? I assume, you'd need to create a new a address, then somehow create a new transaction using the newly created address, ...
0
votes
1answer
922 views

Dogecoin daemon (dogecoind) returning “Method not found” error

I am trying to play with dogecoin deamon useing node-dogecoin library. Unfortunately most calls I try return "Method not found" error for example : dogecoin .auth('MyUserName', 'mypassword') ....
1
vote
0answers
323 views

Bitcoin, detecting deposits to the node.js server (code review)

I'm trying to detect deposits that user will made. I explained it with comment lines in below. Can you are there any flaw in it? var _ = require('underscore') var check = function(client, site) { ...
4
votes
4answers
187 views

Preventing the exposure of public addresses on a website

Rather than having a single, fixed address, I want to generate a new address on my website every time a user request comes in. I'm concerned about google or another web crawler indexing my website ...
2
votes
1answer
3k views

Create OP_RETURN tx with Bitcoinjs-lib

I know how to create a basic TX: var bitcoin = require('bitcoinjs-lib') var tx = new bitcoin.Transaction() // Add the input (who is paying) of the form [previous transaction hash, index of the ...
33
votes
2answers
10k views

What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?

I am wondering if I can use node.js and levelup to access a copy of the blockchain database directly. But from what I can see, I need to know the name of the key(s) before I can get any data, as this ...