Questions tagged [bcoin]

bcoin is a Bitcoin fullnode implementation written in JavaScript.

Filter by
Sorted by
Tagged with
5
votes
1answer
1k 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?
3
votes
1answer
256 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?
2
votes
1answer
192 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/...
2
votes
1answer
186 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 ...
2
votes
1answer
154 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 ...
2
votes
1answer
109 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
2
votes
1answer
78 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 ...
1
vote
1answer
600 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 ...
1
vote
1answer
133 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 ...
1
vote
1answer
127 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 ...
1
vote
1answer
87 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 ...
1
vote
1answer
420 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: ...
1
vote
1answer
49 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 ...
1
vote
1answer
182 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 ...
1
vote
1answer
253 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 ...
1
vote
1answer
44 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 ...
1
vote
1answer
65 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. ...
1
vote
2answers
117 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: ...
1
vote
1answer
47 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.
1
vote
1answer
77 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', ...
1
vote
1answer
104 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?
1
vote
0answers
30 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'...
1
vote
2answers
401 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
246 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 ...
0
votes
1answer
35 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´...
0
votes
1answer
29 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 ...
0
votes
1answer
538 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
0
votes
1answer
24 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 ...
0
votes
1answer
65 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. ...
0
votes
1answer
266 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 ...
0
votes
1answer
257 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, ...
0
votes
0answers
401 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. ...