Questions tagged [development]

This tag should be used for questions related to creation and ongoing work for different existing and future Bitcoin-related projects and source code.

Filter by
Sorted by
Tagged with
1 vote
2 answers
68 views

I'm creating a bitcoin wallet but I can't figure out how to send transactions with a low fee

I created a bitcoin wallet https://github.com/Grantrocks/bitcoingadgets. After 2 days of constant errors, I got it to send btc. But I can't seem to get it to send btc somewhat fast at a low fee. I use ...
user avatar
  • 15
3 votes
1 answer
821 views

Is there a bitcoin api?

Sorry if my question sounds silly, I get downvoted for some reason everytime I ask it. I just need some help Today I saw the "richest bitcoin wallets" chart and I was inspired to program the ...
user avatar
  • 33
0 votes
1 answer
60 views

do Bitcoin full node onions also relay non-bitcoin traffic?

During the past week or so I am setting up a Bitcoin core full node on Raspberry Pi and making it as secure as possible. In the public mind, the onion sites and Darknet are associated with many things ...
user avatar
1 vote
1 answer
58 views

Handling 'Has SIGHASH_SINGLE' flag for psbt2 (BIP370)

BIP370 specifies a bit flag (bit 2) in PSBT_GLOBAL_TX_MODIFIABLE field, that "indicates whether the transaction has a SIGHASH_SINGLE signature who's input and output pairing must be preserved&...
user avatar
0 votes
0 answers
37 views

DSP-powered miner

I have acquired several enterprise-grade DSP hardware units. For novelty, I'd like to run a bitcoin miner on them (Linux) but utilize their DSP capability for computation. Is there any proof-of-...
user avatar
0 votes
0 answers
52 views

Mastering Bitcoin book. Out of date or just lacking information for newer updates?

The development of Bitcoin has advanced since the publishing of "Mastering Bitcoin" book. I've also heard that there might be 3rd edition to reflect the development that has happened since. ...
user avatar
  • 113
0 votes
0 answers
45 views

Can I integrate a decentralised wallet in a website in PHP?

Can I integrate a decentralised wallet in a website in PHP? A decentralised wallet will act as service but I won't have access to the funds of users however users should be able to access their wallet ...
user avatar
0 votes
2 answers
53 views

Help a newbie. Need software [closed]

I want to invest in a mining farm. Everywhere I find only pieces of information. Help please - you need: What software is needed and for what. Where to begin. Equipment and installation conditions. ...
user avatar
0 votes
1 answer
70 views

Can you program a transaction to automatically run once fees are low?

Can i program a bitcoin transaction to run when the network is not as busy or when fees are low? If you are not in a rush to complete trx.
user avatar
  • 3
0 votes
1 answer
57 views

How to develop bitcoin sidechains/second layer solutions?

If I have an idea for a use case that requires transparency and ultra-secure final settlement, how do I go about programming this to be a side chain/2nd layer solution on the bitcoin network? Is there ...
user avatar
  • 145
1 vote
1 answer
116 views

How to call `getblocktemplate` without running a full node?

I was trying to get into bitcoin mining but I could not find any useful information on calling getblocktemplate without downloading the entire blockchain. Is there a way to get blocks for mining ...
user avatar
6 votes
1 answer
149 views

Will LN liquidity advertisements and dual funding allow for third-party purchased liquidity ("sidecar channels")?

Third-party purchased liquidity ("sidecar channels") are a feature of Lightning Pool where Alice pays Bob to fund a new channel to Carol. Although this seems like an indirection (Alice ...
user avatar
1 vote
1 answer
117 views

Why is my target different from a miner?

I'm developing a miner to study how mining works and I've connected it to a pool using Stratum. When I use the bits provided by the pool to calculate the target, it is different from the miner that I ...
user avatar
  • 11
1 vote
0 answers
87 views

complete bitcoin script example

I am trying to learn how to write my own script from scratch. I have seen about a dozen examples by googling but non of them are complete. I am aware of btcdeb as well. Is there a tutorial that covers ...
user avatar
  • 412
-3 votes
1 answer
138 views

If the Lightning Network is so great, why is it "level 2", not stable and not built into Bitcoin Core? [duplicate]

Lightning Network, as it's described, seems to solve all the problems with Bitcoin. I'm unable to accept payments due to the insane fees, but would be able to if Lightning Network were supported. But ...
user avatar
  • 21
1 vote
1 answer
45 views

Test environment for bitcoin transactions/wallets

I want to build a pet project which would use bitcoin for sending/receiving and see balance of wallets involved changed. What are my options for having a local env that would allow me to perform these ...
user avatar
-1 votes
1 answer
67 views

How to add new btc block to blockchain [duplicate]

Please let me known that "How I add a new BTC block to blockchain?" as a sole miner.
user avatar
  • 1
1 vote
0 answers
91 views

Stratum: How many shares should I submit per job?

I'm implementing a bitcoin CPU miner just for fun in python. I've been reading a lot about bitcoin and the protocol pools use for communication and coordinating workers but there is a key concept I ...
user avatar
  • 11
3 votes
1 answer
492 views

What is a correct extranonce2 value in the stratum protocol?

I'm developing a stratum mining client. I read on stratum v1 docs on braiins.com how mining work is done on the stratum protocol and that the coinbase is done by concatenating coinb1+extranonce1+...
user avatar
1 vote
2 answers
67 views

What exaclty does owning cryptocurrency mean?

Assuming owning mean individual custody of valuable asset, does owning cryptocurrency mean owning the tokens/coins? Does it mean owning a private key and owning a record in the "public ledger&...
user avatar
3 votes
3 answers
98 views

Problems about update of protocol of bitcoin

I am new to crypto. I want to ask if in the future, bitcoin has a significant protocol update, will there be a recycle (or some kinds of buy-back or repurchase?) of old tokens or an automatic update ...
user avatar
0 votes
1 answer
85 views

Pay to script hash address transaction not accepted by miners

I have fixed my initial transactions and have been able to send coins to a p2sh address Now I want to spend those coins but when I try to broadcast my transactions either the website (blockcypher) ...
user avatar
  • 2,391
0 votes
0 answers
122 views

Process for finding nonce

Assume we have a transaction in hex (tx_hex) and we want to find a nonce such that SHA-256(SHA-256(nonce|| tx_hex)) = new_transaction_id ('||' denotes concatenation) first bits consist of 32 zeros. ...
user avatar
  • 101
0 votes
1 answer
95 views

Invalid p2sh transaction accepted by the network

I have try to build a 2 of 2 p2sh transaction from scratch using the book "programming bitcoin" by Jimmy Song, we are not directly guided to make one of those so I had to modify some of the ...
user avatar
  • 2,391
0 votes
1 answer
36 views

Does it make sense to create cryptocurrency based totally on go programming language?

The question is straightforward. Would such implementation be practical from performance prespective? or C/C++ and JAVA are the gold standart?
user avatar
0 votes
1 answer
85 views

What is the official explorer and value API for Bitcoin?

I am new to cryptocurrency development, and I have noticed that Bitcoin has an official wallet for both Desktop and Mobile (correct me if I am wrong). My question is, does Bitcoin have an official ...
user avatar
  • 3
0 votes
1 answer
29 views

Is it possible derive pathes without prive key? If so in which wallet?

I implement a webshop, basically it is more than a wehshop a marketplace and I would offer Bitcoin payment. There are 3 roles: buyer, seller, and the marketplace. The procedure I imagined, that that ...
user avatar
  • 388
2 votes
1 answer
171 views

Is there a difference between OP_PUSHBYTES and OP_PUSHDATA

In some documentation about Script we sometimes have to use OP_PUSHBYTESx or OP_PUSHDATAx to indicate that some number of bytes will be an element to read. They seem to do the same thing so is there a ...
user avatar
  • 2,391
1 vote
2 answers
110 views

Mitigating a Double Spend Attack by Punishing the Attacker?

One of the main reasons it's not safe to accept Bitcoin with 0 confirmations is due to the possibility of a double spend (where Mr. Scammer first sends 1 BTC to Alice and then creates an identical ...
user avatar
  • 399
5 votes
1 answer
140 views

Why should BIP157 compact filters be processed in-order?

In BIP157, under "Client Operation", we have the following paragraph: Starting from the first block in the desired range, the client now MAY download the filters. The client SHOULD test ...
user avatar
  • 159
-1 votes
2 answers
201 views

Does this accurately show how a crypto-currency miner software works? [closed]

just got a question here: Does this flowchart accurately show the step-by-step workings of a typical crypto-miner software? I'm a newbie in the cryptocurrency business. Though I welcome comments and ...
user avatar
3 votes
3 answers
802 views

A Bitcoin locking script to force a certain payment to the receiver?

Is there a way to use Bitcoin script to force payment for the receiver? I do not mind if it's a non-standard transaction, just curious if Bitcoin script itself allows expression of something like that....
user avatar
  • 257
0 votes
1 answer
55 views

Are there any Bitcoin payment providers with an API’s for allowing unconfirmed transactions? [closed]

I want to design my web app to instantly accept crypto currency like Bitcoin as a payment for a subscription to the app. I will design it to cancel the subscription and ban the user’s account if the ...
user avatar
-4 votes
1 answer
81 views

The complete indifference by Bitcoin people is making me lose my enthusiasm for Bitcoin [closed]

I've been eagerly trying to spread the word about Bitcoin and running "Bitcoin Core" for a decade now. Every day, I hold on to this hope that it's going to explode "any day now"... ...
user avatar
  • 1
2 votes
1 answer
187 views

Refer to UTXO by output index or output full address in blockchain?

I'm writing my own simple crypto and wondering whether input in a transaction should refer to unspend output only by it's TXID and vout (index in outputs vector in a transaction) OR by it's TXID and ...
user avatar
  • 21
0 votes
1 answer
56 views

Chat online using Bitcoin addresses?

I was surfing on the web and trying to find a chat app that uses Bitcoin address instead of phone numbers or any other identifier. Do you know about any project in this field?
user avatar
  • 127
2 votes
3 answers
468 views

Is there a way to see the precise time of when a transaction was sent out?

I'm a developer. I'm not really knowledgeable in bitcoin development, yet. Say, I'm using Electrum wallet. I share an address with someone. The thing is that I need this someone to pay a certain ...
user avatar
1 vote
0 answers
27 views

Is there any 'Metamask-like' app for Bitcoin? [duplicate]

9 months ago someone asked this same question: Metamask-like web3 inject for bitcoin but I was wondering if there had been be any changes since then. I'm currently looking for a Chrome extension that ...
user avatar
  • 127
0 votes
2 answers
188 views

How Bitcoin nodes validate a new wallet

I have a cuple of questions about how wallet creation works. If I create a Bitcoin wallet offline, is there any way of like validate the new wallet, I mean, what if this wallet already exist? I know ...
user avatar
  • 127
1 vote
1 answer
138 views

Manual work as source of entropy

Working on an opensource air-gapped crypto vault, in which I have the regular method of relying on OS to provide cryptographically secure random source and use that to generate the mnemonic phrase. ...
user avatar
  • 179
1 vote
1 answer
66 views

Can a regtest bitcoind node use SignRawTransactionWithKey + prevtxs for a mainnet raw transaction?

I want to know if a regtest nnode can sign a raw mainnet transaction with the signrawtransactionwithkey rpc provided that I pass the correct keys and prevtxs as the regtest node will not be aware of ...
user avatar
1 vote
0 answers
70 views

Do invalid keys in BIP44 path matter?

I understand not all private keys are usable as they fall outside of Secp256k1, but do they really matter when the master node or path being derived in BIP44 generates a private key which isn't usable ...
user avatar
  • 179
3 votes
1 answer
50 views

Can 2 bitcoin-cli's use the same blocksdir

I am trying to set up 2 clients with both using the same block directory is this possible?
user avatar
0 votes
1 answer
163 views

Is there such a service as an unlimited Bitcoin wallet with an API?

Well, I did tons of research and currently I'm using bitcoinlib for python to have a wallet which should be able to hold over one million addresses and occassionally broadcast transactions. It has ...
user avatar
  • 101
1 vote
1 answer
73 views

What kind of bug does bitcoin core possess that have to be replicated

In order to build a bitcoin client accepted by the current bitcoin nodes we to have to emulate the C++ code present in the bitcoin core client, with all its attributes even the bugs. For example the ...
user avatar
  • 2,391
0 votes
1 answer
162 views

Unable to sweep account using WIF, Green wallet says "No UTXO found"

I am trying to learn the process BTC transactions. In the process, I generated Private key : 82e8034869c77744655899d450f9fe2f01fad030bf8af4ea75b310d1a140f554 Corresponding address generated : ...
user avatar
1 vote
2 answers
1k views

Non SegWit P2SH bytes structure

I'm working on a bitcoin block explorer in golang, in which I'd like to gather as much informations as possible about transactions. I am able to extract addresses from every type of output, and mostly ...
user avatar
  • 123
1 vote
1 answer
162 views

Metamask-like web3 inject for bitcoin

Is there a browser extension that works similarly to Ethereum's Metamask? I am wondering that if there isn't one, is it because of some technical limitation, or that just no one has gotten around to ...
user avatar
  • 11
1 vote
1 answer
673 views

How to programmatically send Bitcoins without requiring a local copy of the blockchain?

I'm quite new to Bitcoin development! I've seen the documentation about RPC commands, available when you have a local copy of the blockchain. But I'd like to know if it's possible to create and ...
user avatar
0 votes
1 answer
75 views

I started build my own blockchain based on mastering bitcoin book using git on win7 and i have a problem

I started learning how to build a blockchain from Antonopoulos book using Git Bash and i have a problem. I used commands: git clone github.com/bitcoin/bitcoin.git cd bitcoin git tag git checkout v0....
user avatar

1
2 3 4 5
9