Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
23 views

Testnet APIs for bitcoin sv?

I'm trying to write code in nodejs that can check balance of an address and send transaction. I'm using the bsv library in nodejs, and I'm stuck at 2 parts which concern to interacting with the ...
0
votes
1answer
23 views

Public key to address [closed]

I am working in js and I need a library that helps me get an address with a public key stored in a buffer.
0
votes
1answer
37 views

How to properly use the rpc command `listunspent` with `bitcore-lib` to create a transaction and get the transaction hash?

I am trying to use the rpc command listunspent to get all the UTXOs relevant to an address, and then I am trying to pass it to a transaction, using bitcore-lib. Below is my code: const Client = ...
1
vote
1answer
63 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 ...
0
votes
1answer
122 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
926 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
286 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
26 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
29 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
375 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
280 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
41 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
186 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
474 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
84 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
132 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
1k 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
96 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 ...
3
votes
1answer
900 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
392 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
703 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 ...
1
vote
0answers
65 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
550 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
102 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
221 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
890 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 ...
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
315 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
175 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
427 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
867 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
1answer
436 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
293 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
265 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
249 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
702 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
543 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
939 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
328 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
188 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
2answers
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
11k 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 ...