Questions tagged [bcoin]
bcoin is a Bitcoin fullnode implementation written in JavaScript.
44
questions
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?
3
votes
2
answers
369
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 ...
3
votes
1
answer
319
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?
3
votes
1
answer
252
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?
2
votes
2
answers
160
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 ...
2
votes
1
answer
70
views
What is the difference between the Time and Mtime fields?
Could anybody please tell me the difference between these two fields?
time
mtime
Thanks in advance!
2
votes
1
answer
240
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
1
answer
117
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 ...
2
votes
1
answer
228
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
1
answer
209
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
2
answers
495
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 ...
2
votes
1
answer
301
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.
2
votes
1
answer
202
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 ...
2
votes
1
answer
134
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
0
answers
83
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 ...
1
vote
1
answer
885
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
1
answer
243
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
(...
1
vote
1
answer
520
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
1
answer
190
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
1
answer
146
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
1
answer
659
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
1
answer
197
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 ...
1
vote
1
answer
515
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 ...
1
vote
1
answer
106
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
1
answer
606
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
1
answer
924
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
1
answer
101
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
1
answer
153
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
1
answer
194
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
2
answers
144
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
0
answers
217
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 ...
1
vote
0
answers
45
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'...
0
votes
1
answer
51
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
1
answer
373
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
1
answer
135
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 ...
0
votes
1
answer
93
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
1
answer
150
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
1
answer
580
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
1
answer
564
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
1
answer
107
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 ...
0
votes
1
answer
190
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
1
answer
359
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
0
answers
507
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. ...
-1
votes
1
answer
121
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 ...