Questions tagged [bcoin]

bcoin is a Bitcoin fullnode implementation written in JavaScript.

Filter by
Sorted by
Tagged with
2 votes
2 answers
266 views

Missing transactions from full node

I am running a full node (bitcoin-core) that connects to the peers network. I am also running and SPV node with a wallet (bcoin). I have made 2 different send transaction from the SPV wallet with very ...
stopiky's user avatar
  • 21
1 vote
1 answer
207 views

Can I create an ordinals-like transaction using bcoin / btcwallet?

According to Understanding how ordinals work with the Bitcoin blockchain. What is exactly stored on the blockchain? you can add data to the unexecuted branch of a taproot input like so: OP_0 OP_IF (...
tuxcanfly's user avatar
  • 395
1 vote
1 answer
154 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 ...
Seth Harrington's user avatar
2 votes
2 answers
134 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 ...
Earth Angle's user avatar
2 votes
1 answer
98 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 ...
Parcero's user avatar
  • 35
1 vote
1 answer
415 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 ...
Parcero's user avatar
  • 35
0 votes
1 answer
128 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 ...
Eddie's user avatar
  • 193
0 votes
1 answer
98 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 ...
Armin's user avatar
  • 11
1 vote
0 answers
157 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 ...
Mario Mazzola's user avatar
2 votes
0 answers
63 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 ...
Bernd Strehl's user avatar
-1 votes
1 answer
119 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 ...
Mario Mazzola's user avatar
0 votes
1 answer
82 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´...
Michael's user avatar
  • 135
0 votes
1 answer
50 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 ...
Mario Mazzola's user avatar
0 votes
1 answer
148 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 ...
Michael's user avatar
  • 135
2 votes
1 answer
254 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.
x70766c's user avatar
  • 23
2 votes
1 answer
196 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 ...
Mario Mazzola's user avatar
1 vote
1 answer
98 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 ...
Mario Mazzola's user avatar
1 vote
1 answer
510 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 ...
madu's user avatar
  • 149
1 vote
1 answer
580 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 ...
madu's user avatar
  • 149
1 vote
1 answer
872 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 ...
Mario Mazzola's user avatar
1 vote
1 answer
97 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 ...
madu's user avatar
  • 149
1 vote
1 answer
137 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. ...
madu's user avatar
  • 149
1 vote
1 answer
187 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', ...
zabbir's user avatar
  • 71
3 votes
1 answer
241 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?
Deb's user avatar
  • 133
0 votes
1 answer
173 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. ...
Deb's user avatar
  • 133
1 vote
0 answers
43 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'...
user3885282's user avatar
0 votes
1 answer
538 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 ...
A. Patidar's user avatar
0 votes
1 answer
355 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, ...
Ales Tsurko's user avatar
2 votes
1 answer
133 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
arshbot's user avatar
  • 1,720
1 vote
1 answer
183 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 ...
Alex G.P.'s user avatar
  • 111
0 votes
0 answers
494 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. ...
Alex G.P.'s user avatar
  • 111
1 vote
1 answer
143 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 ...
SatoshiJones's user avatar
1 vote
1 answer
851 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 ...
Old Pro's user avatar
  • 409
1 vote
2 answers
142 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: ...
arshbot's user avatar
  • 1,720
0 votes
1 answer
558 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
arshbot's user avatar
  • 1,720
0 votes
1 answer
350 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 ...
PhilippS's user avatar
  • 103
1 vote
1 answer
649 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: ...
Bucko's user avatar
  • 183
2 votes
1 answer
222 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 ...
tuxcanfly's user avatar
  • 395
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?
Node's user avatar
  • 316
2 votes
1 answer
238 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/...
Thann's user avatar
  • 70
3 votes
1 answer
314 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?
Bucko's user avatar
  • 183
2 votes
1 answer
201 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 ...
Bucko's user avatar
  • 183
2 votes
2 answers
489 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 ...
Michael's user avatar
  • 21