Questions tagged [bcoin]

bcoin is a Bitcoin fullnode implementation written in JavaScript.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

How do I set up credentials for bcoin's JSON RPC interface?

I've recently been introduced to bcoin. In the documentation, it's stated that bcoin's RPC interface is similar to that of Bitcoin Core but after syncing my node, I can't find a way to set up a JSON ...
user avatar
2 votes
2 answers
84 views

What is bcoin and what is it used for?

I would like to know what bcoin is exactly because I'm confused about what it does. Is it an API for communicating with the bitcoin blockchain? Is it to build a wallet system for other users to have ...
user avatar
2 votes
1 answer
50 views

how to create second node regtest bcoin

I have created a regtest node bcoin, I would like to know how to create the second regtest node to send transactions between nodes and you could also tell me how to generate addresses for the second ...
user avatar
  • 35
1 vote
1 answer
90 views

How to listen to deposits and confirmations of bitcoin transactions

hello I am building a web application using nodejs, bcoin and my application provides the user with a bitcoin address in which to deposit funds, I would like to know how I can listen on my nodejs ...
user avatar
  • 35
0 votes
1 answer
101 views

Redeem multisig tx using bcoin with multiple inputs (from an exhcnage)

I have a multisig tx with multiple inputs and I'm having trouble completing this tx. Here's an example tx https://blockchain.com/btc/address/3HMQrFkYexL3FMhPnXPAoDFsFs8LiqB8ou Following the bcoin ...
user avatar
  • 193
0 votes
1 answer
64 views

Bcoin - running webpack-app issue

I have cloned bcoin repo and installed webpack package. When trynig to run webpack-app I get the error below: btc@ubuntu:~/bcoin/node_modules$ npm run webpack-app npm ERR! missing script: webpack npm ...
user avatar
  • 11
1 vote
0 answers
80 views

How can I use PSBT in a JavaScript project?

I am trying to use PSBT in a Bitcoin project. The idea is to generate keys and sign transactions client-side. I am already familiar with bitcoinjs-lib but I find the API rather complicated. It would ...
user avatar
2 votes
0 answers
43 views

Sign transaction externally

I create a transaction with inputs from a given address / public key without signatures. Every input needs to be signed. I use a different method to generate the signatures so I can't provide a ...
user avatar
0 votes
1 answer
98 views

BCoin bsock: listen to transactions and make sense of them

I am trying to set up bsock in my bcoin application, with the aim of listening to some transactions that are broadcasted in the Bitcoin network. This would enable users of my app to have real time ...
user avatar
0 votes
1 answer
65 views

Different balance for same private key using bcoin and copay

I´ve got a copay wallet for test purpose. In there I have used a wallet for quite a while. Now I´ve started to play around with bcoin and wanted to import the wallet from copay to bcoin. therefore I´...
user avatar
  • 135
0 votes
1 answer
35 views

bcoin.io: Get TXs in reverse order

I am using bcoin for a project. I would like to retrive TXs in reverse order. In the documentation I read that I can do that through the "reverse" query string parameter. Anyway, the ...
user avatar
0 votes
1 answer
96 views

How to import an existing extended private key to bcoin?

I´m searching for a way to import an existing extended private key, exported from electrum, into a bcoin node. Reading https://bcoin.io/api-docs/ I can´t find a description to do this. Am I missing ...
user avatar
  • 135
2 votes
1 answer
178 views

How do I disable mining in `bcoin`?

When running bcoin, how does one disable mining by default? I just want to run a full node without mining. There seems to be no config options to control it.
user avatar
  • 23
2 votes
1 answer
164 views

Estimated Fees in BCOIN

I installed a BCOIN full node and I would like to calculate estimated fees for Bitcoin transactions. This functionality works perfectly in the CLI. For example: bcoin-cli fee 3 Anyway things go ...
user avatar
1 vote
1 answer
81 views

bcoin daemon killed over and over again [BCOIN]

I am setting up a full bitcoin node using BCOIN. I spinned up a VPS on Google Cloud. Specs: 2 CPUs and 7.5 GB of RAM. 500gb of standard storage. OS: Linux ubuntu. As I start the daemon, things go ...
user avatar
1 vote
1 answer
423 views

How to sign a raw multisig transaction from an external private key

I am creating a 2-of-3 multisig wallet, where the 2 hot keys are external HSM devices. I am using Bcoin to create my transactions. After the transactions are created, I will send the raw transaction ...
user avatar
  • 149
1 vote
1 answer
498 views

Hardened address generation with BIP44 watch-only wallet with xpub

I am puzzled by the hardened key derivation from a watch-only BIP44 wallet. Let me first explain what I am trying to do. I am implementing a 2-of-3 multisig scheme I am using Bcoin node and wallet ...
user avatar
  • 149
1 vote
1 answer
782 views

Bcoin vs Bitcoin Core: query your node to list transactions of any address

I am trying to set up a Bitcoin node. It should be possible to query the node through JSON RPC to get a list of all transactions (including UTXOs) of any Bitcoin Address, which doesn't necessarily ...
user avatar
1 vote
1 answer
84 views

Creating a multisig wallet with bcoin and receiving transactions

I am trying to create a multisig wallet from two externally generated xpubs. The process I am taking is to create two multisig wallets with the two xpubs, add each others keys as shared keys and ...
user avatar
  • 149
1 vote
1 answer
103 views

Create a transaction from a wallet coins (UTXOs) with the bcoin library

I have a multisig setup where the signing is done through external HSM's. I am using Bcoin and its wallet to receive funds. What I am trying to do is to create a transaction and sign it with the HSMs. ...
user avatar
  • 149
1 vote
1 answer
164 views

Bcoin initial blockchain sync progress isn't saved

I'm using bcoin and it's class FullNode to run a full Bitcoin Node. Here's the configuration: const node = new bcoin.FullNode({ prefix: '/mnt/d/bcoin', network: 'testnet', ...
user avatar
  • 71
2 votes
1 answer
210 views

How do I connect my `bcoin` wallet to `bitcoind`?

I have bitcoind running in regtest mode. I want to connect my bcoin wallet to it and retrieve all UTXOs relevant to the sender's address. How can I do that?
user avatar
  • 123
0 votes
1 answer
133 views

How to create an application which constructs a transaction using `bcoin` (javascript)?

I am new to development. I am working on a project and I am trying to use bcoin. I want to create an application which has a UI, where the user will be asked to enter Destination address and amount. ...
user avatar
  • 123
1 vote
0 answers
37 views

Sample code to transfer funds using bcoin [closed]

I am new to bitcoin world. I wanted to get a sample code to transfer bitcoins from one bitcoin account to another using javascript and bcoin. The inputs are sender's private key and address, receiver'...
user avatar
0 votes
1 answer
430 views

How to get balance history of a bitcoin address using BCOIN node

Is there any way to get history balance of an address. Balance is unspent transaction outputs (UTXOs). I am using BCOIN node. Bcoin has given a API for /coin/address/:address but it is giving ...
user avatar
0 votes
1 answer
331 views

How to make a persistent SPV wallet? (bcoin)

I created a wallet on a SPV node. The wallet is initialized from a mnemonic. After receiving some transactions, the wallet's balance looks like: { account: -1, tx: 3, coin: 3, unconfirmed: 136300, ...
user avatar
2 votes
1 answer
124 views

does bcoin support simplified payment verification (SPV)?

Does bcoin support simplified payment verification (SPV)? I can't seem to find anything about it online
user avatar
  • 1,369
1 vote
1 answer
164 views

Bcoin wallet always has unconfirmed balance

I have locally running bcoin node in testnet and acquired test bitcoins through faucet. Now, when calling balance check via bcoin cli wallet balance (when synchronization completed) I always receiving ...
user avatar
  • 111
0 votes
0 answers
456 views

Bcoin node and testnet faucet

I started bcoin in daemon mode (s I understand it is the same as full-node) with specifying network: testnet. As I understand it connected to the world-wide testnet. Now I want to get some test BTC. ...
user avatar
  • 111
1 vote
1 answer
129 views

Is it possible to alter the source code and still have a valid Bitcoin transaction?

Say I wanted to run an alternative version of Bitcoin, and I changed 1 line in the bitcoin source code. Is the signature/hash of the completed transaction going be the same or different when I run ...
user avatar
1 vote
1 answer
777 views

How do I spend a non-standard P2SH transaction

I was sent a P2SH puzzle address. I have solved the puzzle, which is to say I have created a script that matches the hash, and I know what to put on the stack before the script. Sadly, what I am ...
user avatar
  • 409
1 vote
2 answers
131 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: ...
user avatar
  • 1,369
0 votes
1 answer
549 views

Default http port for lcoin?

What is the default http port that lcoin listens on? bcoin listens on port 18332 for http by default, however lcoin documentation links only point to bcoin doc links
user avatar
  • 1,369
0 votes
1 answer
317 views

How to import Multibit HD Wallet in bcoin?

I created a wallet using Multibit HD and noted the mnemonic. I sent some money to an address that showed up in Multibit HD. Worked fine. Transaktions are displayed and balance is adjusted. Can be ...
user avatar
  • 103
1 vote
1 answer
583 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: ...
user avatar
  • 173
2 votes
1 answer
204 views

Bcoin - chain database location

'use strict'; const Chain = require('bcoin/lib/blockchain/chain'); const chain = new Chain({ network: 'main' }); (async () => { await chain.open(); console.log(chain.tip); })(); The ...
user avatar
  • 385
6 votes
1 answer
2k views

How do I remove Wallet from Bcoin?

I'm playing with bcoin cli and created lots of wallets. Is there any way to remove wallet via WalletDB Api?
user avatar
  • 316
2 votes
1 answer
221 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/...
user avatar
  • 70
3 votes
1 answer
284 views

How do I get transactions from the Bitcoin Blockchain with bcoin?

Is this possible with bcoin? Do I need a full node to get transactions or does it work with an SPV?
user avatar
  • 173
2 votes
1 answer
178 views

Resyncing bcoin brings up database version error

I was resyncing my bcoin node and got the following error: Error: Warning: Your database does not match the current database version. This is likely because the database layout or serialization ...
user avatar
  • 173
1 vote
2 answers
463 views

bcoin watch only address

Can anyone tell me how to set up a watch-only address using bcoin? while using the command: bcoin wallet create myNewWallet this will always be a "watchOnly": false wallet by default. Is there any ...
user avatar
  • 11