Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [transactions]

Transactions are signed messages carrying out the transfer or generation of bitcoins. They are broadcast throughout the Bitcoin network and, if accepted, integrated in the blockchain.

Filter by
Sorted by
Tagged with
5 votes
0 answers
716 views

Bitcoin RPC: How to find the transaction that spends a TXO?

I suspect there is no good way to do it. However is there any sub-optimal way to find the transaction that spends a transaction output (knowing the txid and index) with Bitcoin RPC? Assuming txindex=1 ...
4 votes
1 answer
63 views

What are the malleability threat vectors when passing PSBTs to other actors?

If I am passing a PSBT (Partially Signed Bitcoin Transaction) between multiple people, and I pass on my signature for my UTXOs for given inputs, can someone take advantage of malleability and cheat me ...
0 votes
1 answer
39 views

Which SIGHASH type we have to append at the end of the trimmed transaction in OP_CHECKSIG

How to know which sighash type we have to append to the trimmed transaction at the time of input scripts verification, take reference from the below example: { "version": 2, "...
0 votes
0 answers
17 views

Missing funds from my account [closed]

bitcoincash:qrkc4lc750pgpa8xv6ylwqcjm4wnvjycvvh4alts5d This account received 0.67 bitcoin over 6,500 from my account - how do I locate to get it back
0 votes
1 answer
60 views

How to create and sign a segwit transaction using any npm pacakge

So I am using this NPM package ( https://www.npmjs.com/package/bitcore-lib ) to create and sign a Bitcoin legacy transaction locally and it was working fine for legacy. But when I tried to do the same ...
0 votes
1 answer
21 views

Where is my btc? [duplicate]

Hi My friend bought BTC in 2017 on an exchange. He just recently went back into it and saw he had some btc in there. After taking a look we saw he bought some then sent some, problem is he doesnt ...
0 votes
2 answers
505 views

Missing Witness field in p2wpkh decoded tx hex

I have placed together a raw tx hex but when it's unable to be broadcasted as I keep getting an error below sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-...
3 votes
2 answers
802 views

How to sign a transaction using BitcoinJ

I am having problem signing the transaction using BitcoinJ library without the Wallet instance, I only have the Transaction class instance and the ECKey in order to sign the transaction. Is there a ...
0 votes
1 answer
133 views

There are twice as many coins on the balance as it should be, but when sending it becomes zero

I sent myself coins from one wallet to another. After the coins came, I made a copy and deleted the wallet from my computer. After a while, I re-restored the wallet, the balance was three times larger,...
-1 votes
0 answers
28 views

Hello everyone, so I am new here and was wondering if anyone could tell me the process it takes to cash out my Bitcoin [duplicate]

If I don't have the money to withdraw the Bitcoin is there any thing else that I can do I have a substantial amount
1 vote
1 answer
130 views

How bitcoin node selects the output unspent transactions when sending bitcoin?

please help me understand the algorithm for selecting UTXO when forming a new transaction in Bitcoin. For example, my wallet has a lot of incoming transactions (thousands of transactions in amounts of ...
0 votes
1 answer
59 views

Time lock... Invalid transaction

Been playing around with timelock transactions, made one to do a test went to do the spend and it was accepted by the network. However my transaction isnt confirming, I tried doing another one upping ...
0 votes
1 answer
27 views

Make signed transaction invalid after specified time

Is it possible to construct a valid signed transaction that will become invalid if it hasn't been included in a block before a specified height? Is there any opcode or other way to accomplish this? ...
0 votes
1 answer
82 views

How to convert signature to DER encoded format in python

vk = ecdsa.VerifyingKey.from_string(bytes.fromhex(pubKey),curve=ecdsa.SECP256k1) if vk.verify(bytes.fromhex(signature), bytes.fromhex(sha256_hash), hashlib.sha256, sigdecode=sigdecode_der) == True: # ...
42 votes
2 answers
15k views

How are transaction hashes calculated?

I'm trying to calculate the hash of transactions in bitcoin blocks, but I'm not getting the right answers. For example, the genesis block has a single transaction. Here's how I'm attempting to ...
1 vote
0 answers
627 views

Coinbase lost my transaction from Bitstamp

I'm moving my coins out of Bitstamp I was looking for another exchange. I have sent 0.00007 BTC to just test the transaction. I got the address where I want to send coins to from coinbase.com/...
-1 votes
1 answer
88 views

blockchain.com websocket not working

I started to listen to the "wss://ws.blockchain.info/inv" websocket address in the link below, but none of the transactions I made were sent to the messages. Later, when I tried the ...
2 votes
1 answer
101 views

How much on-chain activity is to and from exchanges?

Are there any data services which provide metrics that show how much of the transactions on the Bitcoin blockchain are to and from exchanges?
0 votes
1 answer
30 views

Must input UTXO references be unique in a transaction, and/or unique in a block?

Must input UTXO references (txid + vout) be unique in a transaction, and/or be unique in a block? Put another way, is it a rule that UTXOs can be consumed piecemeal in transactions and blocks, so long ...
0 votes
0 answers
31 views

is this normal to have 22000 transcations in a testnet block of bitcoin

So I having this issue where in my local system when I hit getblock RPC method in a public node, for block number 2813986, I get around 22000 transactions in it, But when I check on blockstream.info/...
-1 votes
0 answers
37 views

Bitcoin and Litecoin interoperability with lighting network

Can litecoin transaction to be send to bitcoin blockchain(to be sent to bitcoin address)using lighting network?
0 votes
2 answers
29 views

hashTypeCode/sighash flag example byte arrays for each type

Say I have this (randomly selected) transaction confirmed: txprev.txid: 64891cd6a9771adf75b343367850198633d2865df516533f523ce33fdf8c55c2 txprev.version : 01000000 txprev.input count : 01 ...
0 votes
1 answer
75 views

My problem is that I can't send my BTC

I sent a certain amount of BTC from the exchange to my trust wallet. Currently, the wallet shows that I have 0.8 BTC, but when I want to send some from this wallet to other addresses, it keeps showing ...
1 vote
2 answers
124 views

Security of spending

New to Bitcoin. Looking at a tx structure, the input is signed to "unlock" it. What prevents an attacker from taking this and then spending as they wish? That is, Alice wants to send 1 BTC ...
0 votes
1 answer
47 views

What is the hashTypeCode?

After a transaction is serialised ready for signature or signature verification, a 4 byte hashTypeCode must be added (step 9 here). As it's derived from a single byte, it has 256 possible values. What ...
5 votes
2 answers
193 views

When you make a Bitcoin transaction, can the receiving person (and the world?) really see how much coins you have in the entire wallet?

I really hope that I've got this horribly wrong, but I have to ask... I have this idea, which I base on comments and explanations I've heard over the years, that when you make a Bitcoin transaction, ...
0 votes
0 answers
15 views

Transaction will not broadcast: 0/ not confirmed not in mempool

Found wallet.dat file from 2013 Fee is high, blockchain is synced, and network is stable. Bitcoin core v27 I could use some direction or alternative solutions. The goal is to send bitcoin from this ...
1 vote
1 answer
163 views

Error Validating Segwit Transactions using Python Blockcypher API: Error Running Input Script

As the title states, I'm trying to send a Litecoin transaction using the Blockcypher API Python SDK, and using Bitcoinlib for key management. I have extensively reviewed the documentation and source ...
0 votes
0 answers
53 views

How can I get time of mempool transactions in milliseconds?

Is it possible to run a Bitcoin node and collect mempool transactions in the unit of milliseconds? More specifically, if I change the time unit of mempool transactions in the source code of txmempool....
0 votes
2 answers
60 views

How do pre-Segwit nodes interpret transactions containing Taproot OP_CHECKSIGADD?

When pre-Segwit nodes encounter blocks with Segwit transactions, they'll see them as "spent anyone can spend" transactions and so can validate them and move on to the next block. However, ...
0 votes
1 answer
33 views

What is an example usage for Script pseudo words?

I see the following on bitcoin.it: Pseudo-words These words are used internally for assisting with transaction matching. They are invalid if used in actual scripts. Word Opcode Hex Description ...
0 votes
0 answers
39 views

Why does OP_CHECKSIG/OP_CHECKMULTISIG remove the signature from the subscript?

When OP_CHECKSIG is used, all instances of the signature are removed from the subScript before it's included in a transaction template to be verified. See also step 3 in this excellent diagram. The ...
2 votes
1 answer
271 views

What is the transaction hash preimage for different values of SIGHASH (not SIGHASH_ALL) in P2PKH?

I have a few questions regarding the transaction hash preimage when signing with different values of the SIGHASH flag in the case of the P2PKH script. I know what the transaction hash preimage looks ...
3 votes
2 answers
358 views

In Electrum, how does one watch/poll a wallet for an incoming payments to a certain address via API?

I want to create a simple way to accepting bitcoins on my own, using Electrum. I don't except big volume. I suppose, I'd have at most a handful of incoming payments in the beginning. That is, I ...
3 votes
1 answer
137 views

Is there still a digital signature loophole in Bitcoin transactions?

I want to ask a question: Does the problem of repeating the value r still persist today in Bitcoin transactions? If so, how can I find transactions that contain this thing? I have research on how to ...
3 votes
1 answer
128 views

Is it credible that a "stuck transaction" was the true cause of Binance pausing bitcoin withdrawals?

It is reported that Binance is blaming a "stuck transaction causing a backlog" as the reason it prevented people withdrawing their bitcoin for some hours on the 13th June 2022. I do not ...
0 votes
1 answer
191 views

unrecognized output wallet when using Electrum to send bitcoin

help me understand this transaction - https://www.blockchain.com/ro/btc/tx/1318a3e54cff78fdd8f6b54e6fe5115072586091788c9bfa08ca82d83e4bc276 . Never sent bitcoin from hardware / hot wallet before so I ...
0 votes
1 answer
186 views

How do miners manually add transaction to a block template?

Here's my idea from the quick research: Miners use getblocktemplate RPC method. In the obtained block template, they remove some transaction and instead place in other transaction that wouldn't ...
2 votes
1 answer
98 views

Exact witness requirements for a segwit transaction with P2PKH and P2WPKH inputs

Segwit transactions can mix segwit and non-segwit inputs: Segwit transaction from mixed addresses (segwit and non-segwit) Can I build a raw segwit transaction with no segwit inputs? But how exactly ...
0 votes
1 answer
25 views

How to estimate how long a transaction will take? [duplicate]

I have this transaction that's been pending for 2 days. mempool says estimate in several hours or more. For context, I am using blue wallet on ios and electrum on android. I imported the electrum ...
0 votes
1 answer
78 views

How to pick the block in which a transaction will get mined?

I am developping a bot for a customer with the following goals in mind: to inscribe a satoshi with the block number that it has been mined in (ordinal inscription) on every block. i think this is ...
0 votes
1 answer
68 views

Why can I not find my transaction in the mempool?

I built a native segwit raw v2 transaction with the pwpkh addresses, and get the decoded transaction as the follows { "version": "02000000", "marker": "00", ...
3 votes
0 answers
18 views

How to broadcast transactions in bitcoin regtest mode?

I build three nodes named A,B,C based on bitcoin-regtest image of docker. And these three nodes are in the same network which means they can communicate with each other. In node A, I use bitcoin-cli -...
0 votes
1 answer
124 views

How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar. Similarly for withdraw they just ask for the ...
0 votes
1 answer
47 views

Error validating transaction: Transaction orphaned, missing reference (TESTNET)

RAWTRANSACTION HEX ...
0 votes
1 answer
40 views

Does new transaction in RBF has a txid different from the stuck transaction ? If yes , then isn't it basically creating a new transaction?

If I am sending a new RBF transaction to replace my stuck transaction and since the txid preimage has outputs value it will change the txid then why do we even care about RBF and nsequence < ...
1 vote
0 answers
52 views

I send sats to the Bitcoin Core wallet I created some time ago without knowing what I was doing and now facing issues with withdrawal I am clueless

Some time ago, I set up a Bitcoin core wallet and sent funds to that wallet a few times thinking they'll be safely stored. Well, they are, and probably too safely. I have a hard time getting funds out....
2 votes
2 answers
373 views

How to exchange small amount of bitcoin?

Hi I have a little question could you tell which is the best method to exchange 2.27mBTC (18€) in euros or USD? I registered on coinmama but the minimum for them is 50€ is there any other exchange ...
1 vote
1 answer
753 views

Using CoreBitcoin in Swift to create raw transaction

I am new to coding, and only know swift, obj-C is still foreign to me. I have a functioning wallet but for now am relying on BlockCypher API to build a transaction which I do NOT want to do. Can ...
0 votes
1 answer
3k views

How to send bitcoins without the bitcoin client in PHP

Is there a way to send bitcoins programmatically without the bitcoin client using PHP?

1
2 3 4 5
70