Bitcoin Forum
April 25, 2024, 06:08:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I create a fake btc transaction which will be rejected  (Read 267 times)
WlanWerner (OP)
Jr. Member
*
Offline Offline

Activity: 125
Merit: 4


View Profile WWW
February 05, 2020, 09:37:41 PM
 #1

This sounds probably really strange but I am trying to figure out how to create a fake BTC transaction.

I know that it won't get accepted and that it will be rejected by the network, but for testing purposes I would like to know how I can submit a fake trancation to the network.
I kn
1714068531
Hero Member
*
Offline Offline

Posts: 1714068531

View Profile Personal Message (Offline)

Ignore
1714068531
Reply with quote  #2

1714068531
Report to moderator
1714068531
Hero Member
*
Offline Offline

Posts: 1714068531

View Profile Personal Message (Offline)

Ignore
1714068531
Reply with quote  #2

1714068531
Report to moderator
1714068531
Hero Member
*
Offline Offline

Posts: 1714068531

View Profile Personal Message (Offline)

Ignore
1714068531
Reply with quote  #2

1714068531
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714068531
Hero Member
*
Offline Offline

Posts: 1714068531

View Profile Personal Message (Offline)

Ignore
1714068531
Reply with quote  #2

1714068531
Report to moderator
hatshepsut93
Legendary
*
Offline Offline

Activity: 2954
Merit: 2145



View Profile
February 05, 2020, 09:45:12 PM
 #2

There's a lot of ways how a transaction can be invalid - you can have invalid signature, you can have invalid input by trying to spend coins that don't exist, you can spend higher amount than you have, you can have incorrect transaction format, you can have incorrect output or fee amount and so on. Basically, look at the structure of a transaction and think how can you edit its values to make them invalid.

But what exactly do you want to achieve? You won't be able to spam the network, your peers will just refuse to broadcast it further, won't put it on their mempool and will likely ban you if you do it too much.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
WlanWerner (OP)
Jr. Member
*
Offline Offline

Activity: 125
Merit: 4


View Profile WWW
February 05, 2020, 10:00:42 PM
 #3

There's a lot of ways how a transaction can be invalid - you can have invalid signature, you can have invalid input by trying to spend coins that don't exist, you can spend higher amount than you have, you can have incorrect transaction format, you can have incorrect output or fee amount and so on. Basically, look at the structure of a transaction and think how can you edit its values to make them invalid.

But what exactly do you want to achieve? You won't be able to spam the network, your peers will just refuse to broadcast it further, won't put it on their mempool and will likely ban you if you do it too much.

I don't want to spam the network, just create a single invalid transaction. I experimented a bit with my own BTC Payment Processor and I would like to know how it handles rejected transactions
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


Block halving is coming.


View Profile WWW
February 05, 2020, 10:20:14 PM
 #4

In short, it's "double-spending" which is mostly used for scamming purposes.

What is your true purpose to make a fake transaction?

I don't want to spam the network, just create a single invalid transaction. I experimented a bit with my own BTC Payment Processor and I would like to know how it handles rejected transactions

If this is true you can get the idea from the video below how to double spend.

- https://www.youtube.com/watch?v=ycq7O48aPvQ

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
crzy
Full Member
***
Offline Offline

Activity: 2128
Merit: 180


View Profile
February 05, 2020, 10:54:20 PM
 #5

This sounds probably really strange but I am trying to figure out how to create a fake BTC transaction.

I know that it won't get accepted and that it will be rejected by the network, but for testing purposes I would like to know how I can submit a fake trancation to the network.
I kn
What for? I really wonder why you have to do this. We know that the transactions will be invalid if the address is incorrect and your transactions might not proceed because of that or if you really want to go with that transaction then send bitcoin into a wrong address which you can’t take it back anymore.
hatshepsut93
Legendary
*
Offline Offline

Activity: 2954
Merit: 2145



View Profile
February 05, 2020, 11:19:30 PM
 #6

There's a lot of ways how a transaction can be invalid - you can have invalid signature, you can have invalid input by trying to spend coins that don't exist, you can spend higher amount than you have, you can have incorrect transaction format, you can have incorrect output or fee amount and so on. Basically, look at the structure of a transaction and think how can you edit its values to make them invalid.

But what exactly do you want to achieve? You won't be able to spam the network, your peers will just refuse to broadcast it further, won't put it on their mempool and will likely ban you if you do it too much.

I don't want to spam the network, just create a single invalid transaction. I experimented a bit with my own BTC Payment Processor and I would like to know how it handles rejected transactions

Then one of the easiest methods is to take some existing transaction that is already mined and just try to broadcast it again. Although if you want to handle different errors, you would have to hand-craft invalid transactions yourself for different cases, if you can somehow get a reason why your transaction got rejected.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Debonaire217
Sr. Member
****
Offline Offline

Activity: 644
Merit: 364

In Code We Trust


View Profile
February 06, 2020, 01:07:44 AM
 #7

I wonder why op needed to execute this kind of act knowing about bitcoin's system in terms of blockchain.I could say, if you want to create a fake BTC transaction, you might want to double spemd your BTC, in such a case that the other transaction would not be confirmed on the net work, but the other will not escape the system to be confirmed. Though, you could use the ither which isn't accepted.

It might not be the most suitable solution, if you can, you could make a system.out of scratch that imitates bitcoi  transaction without even using blockchain.
Darker45
Legendary
*
Offline Offline

Activity: 2562
Merit: 1854


🙏🏼Padayon...🙏


View Profile
February 06, 2020, 01:43:08 AM
 #8

This sounds probably really strange but I am trying to figure out how to create a fake BTC transaction.

I know that it won't get accepted and that it will be rejected by the network, but for testing purposes I would like to know how I can submit a fake trancation to the network.
I kn
What for? I really wonder why you have to do this. We know that the transactions will be invalid if the address is incorrect and your transactions might not proceed because of that or if you really want to go with that transaction then send bitcoin into a wrong address which you can’t take it back anymore.
Maybe I am becoming just a negative person with age but I would assume it's for him to attempt to use with a lie or a part of a scam where he pretends to pay people and take a product or cash. I don't trust random questions like this.

I don't think he/she would be able to that.

Random questions such as this raises more questions than answers. This man/woman admittedly knows that his/her fake transaction won't get accepted by the network. As a matter of fact, it won't even reach the network depending on which fake transaction he/she refers to. Perhaps this man/woman is just curious to know up to where a fake Bitcoin transaction would take him/her. Well, it won't take him/her far. The site or software he/she is using might simply tell him/her that his/her attempted transaction is erroneous. And everything ends there.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10499



View Profile
February 06, 2020, 05:14:34 AM
 #9

I don't want to spam the network, just create a single invalid transaction. I experimented a bit with my own BTC Payment Processor and I would like to know how it handles rejected transactions

unless you have written your own full node that verifies transactions/blocks it  receives, your experiment is pointless because any existing full node (that are 99% bitcoin core) are already successfully rejecting any kind of invalid transaction that you can come up with. so if your "Payment Processor" is relying on these nodes it won't even receive it.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
romero121
Legendary
*
Offline Offline

Activity: 3164
Merit: 1213


View Profile
February 06, 2020, 05:40:38 AM
 #10

Making a fake bitcoin transaction isn't possible, because when it comes to creating fake transaction it is like adding more than the supply of twenty one million. This isn't possible in the network. Some say through double spending it is possible, I'm not sure of it as this doesn't going to increase the supply.

If fake transaction is possible then it doesn't have any difference between the regular banking and the cryptocurrency network.
WlanWerner (OP)
Jr. Member
*
Offline Offline

Activity: 125
Merit: 4


View Profile WWW
February 06, 2020, 11:01:08 AM
 #11

Thanks for your answers, that did help me all in all.

And no, I don't want to scam anyone. I'm just curious
alani123
Legendary
*
Offline Offline

Activity: 2380
Merit: 1408


Leading Crypto Sports Betting & Casino Platform


View Profile
February 06, 2020, 11:02:50 AM
 #12

Run as many 'fake' transactions as you want on a testnet. There you won't have to worry about spamming the network and moreover, the fees you might end up paying will consist of worthless coins.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
The Cryptovator
Legendary
*
Offline Offline

Activity: 2226
Merit: 2170


Need PR/CMC & CG? TG @The_Cryptovator


View Profile WWW
February 09, 2020, 05:19:42 AM
 #13

If you are wondering to make totally fake bitcoin transaction on the btc main blockchain then it's not possible. You can make transaction on test net, but you can't do anything with that transaction. Only thing you can do with main net called 'double spending'. Some users above already gave you examples how to do it. Otherwise there is no such as fake transaction type, you should have btc to broadcast your transaction, means it's real (not fake). Double spend will cause rejected your first transaction by btc blockchain so it doesn't mean fake transaction. It will show blockchain that your transaction has been rejected.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Ucy
Sr. Member
****
Offline Offline

Activity: 2576
Merit: 401


View Profile
February 09, 2020, 05:52:08 AM
 #14

There's a lot of ways how a transaction can be invalid - you can have invalid signature, you can have invalid input by trying to spend coins that don't exist, you can spend higher amount than you have, you can have incorrect transaction format, you can have incorrect output or fee amount and so on. Basically, look at the structure of a transaction and think how can you edit its values to make them invalid.

But what exactly do you want to achieve? You won't be able to spam the network, your peers will just refuse to broadcast it further, won't put it on their mempool and will likely ban you if you do it too much.
Concerning the ban...
I wonder how it works considering that the whole thing is trustless. I guess suspension is the better word.. . Or will the attacker's fund be frozen or something?        If someone or Some people hijack people's computer and spam the network, I wonder how peers will handle it.
20kevin20
Legendary
*
Offline Offline

Activity: 1134
Merit: 1597


View Profile
February 09, 2020, 08:14:37 AM
 #15

Concerning the ban...
I wonder how it works considering that the whole thing is trustless. I guess suspension is the better word.. . Or will the attacker's fund be frozen or something?        If someone or Some people hijack people's computer and spam the network, I wonder how peers will handle it.

The miners can decide not to include the transactions broadcasted by an address in any block they mine, hence the address is banned by them (or by the pool).

Doesn't count as a GLOBAL ban though - a solo miner makes no change in the network unless they own a significant percentage of global hashing power and a pool banning the address doesn't automatically trigger all the other pools to ban it, but as soon as one spams the Blockchain network with an invalid tx, most pools and/or solo miners will eventually censor their txs.
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10499



View Profile
February 09, 2020, 09:17:37 AM
 #16

There's a lot of ways how a transaction can be invalid - you can have invalid signature, you can have invalid input by trying to spend coins that don't exist, you can spend higher amount than you have, you can have incorrect transaction format, you can have incorrect output or fee amount and so on. Basically, look at the structure of a transaction and think how can you edit its values to make them invalid.

But what exactly do you want to achieve? You won't be able to spam the network, your peers will just refuse to broadcast it further, won't put it on their mempool and will likely ban you if you do it too much.
Concerning the ban...
I wonder how it works considering that the whole thing is trustless. I guess suspension is the better word.. . Or will the attacker's fund be frozen or something?        If someone or Some people hijack people's computer and spam the network, I wonder how peers will handle it.

node ban violating nodes that connect to their node and send them garbage. this is done to protect themselves against certain types of attacks and stop their traffic from being wasted for no reason.
if someone hijacked someone else's computer they are going to do a lot more damage to that person than to the network such as stealing their funds, installing malware on their PC,... there isn't that much attack surface against a decentralized network after all.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hatshepsut93
Legendary
*
Offline Offline

Activity: 2954
Merit: 2145



View Profile
February 09, 2020, 05:45:13 PM
 #17

The miners can decide not to include the transactions broadcasted by an address in any block they mine, hence the address is banned by them (or by the pool).

Doesn't count as a GLOBAL ban though - a solo miner makes no change in the network unless they own a significant percentage of global hashing power and a pool banning the address doesn't automatically trigger all the other pools to ban it, but as soon as one spams the Blockchain network with an invalid tx, most pools and/or solo miners will eventually censor their txs.

If a transaction is invalid, it won't even reach mining nodes, unless you broadcast it directly to them. The nodes don't waste their bandwidth on broadcasting invalid transactions, that would be vulnerable to DDOS.

Also, what you are talking about "banning transactions" is a different concept - nodes can censor valid transactions by refusing to include them, but you need to execute 51% attack to succeed at it, otherwise you'll just delay the confirmation by a block or two at best.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Mahanton
Hero Member
*****
Offline Offline

Activity: 2688
Merit: 625



View Profile
February 09, 2020, 06:11:24 PM
 #18

This sounds probably really strange but I am trying to figure out how to create a fake BTC transaction.

I know that it won't get accepted and that it will be rejected by the network, but for testing purposes I would like to know how I can submit a fake trancation to the network.
I kn
What for? I really wonder why you have to do this. We know that the transactions will be invalid if the address is incorrect and your transactions might not proceed because of that or if you really want to go with that transaction then send bitcoin into a wrong address which you can’t take it back anymore.
Maybe I am becoming just a negative person with age but I would assume it's for him to attempt to use with a lie or a part of a scam where he pretends to pay people and take a product or cash. I don't trust random questions like this.
Same perceptions and we cant really blame ourselves not to think up this way. Asking on how to fake btc transactions? or simply trying to double-spend? This is just a simple way or having the motive on scamming someone.
About the question theres no way for you to fake a btc transaction and all of those explanations above are valid ones.So if this is some sort of testing it isnt really a convincing
alibi for me. Grin

R


▀▀▀▀▀▀▀██████▄▄
████████████████
▀▀▀▀█████▀▀▀█████
████████▌███▐████
▄▄▄▄█████▄▄▄█████
████████████████
▄▄▄▄▄▄▄██████▀▀
LLBIT|
4,000+ GAMES
███████████████████
██████████▀▄▀▀▀████
████████▀▄▀██░░░███
██████▀▄███▄▀█▄▄▄██
███▀▀▀▀▀▀█▀▀▀▀▀▀███
██░░░░░░░░█░░░░░░██
██▄░░░░░░░█░░░░░▄██
███▄░░░░▄█▄▄▄▄▄████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█████████
▀████████
░░▀██████
░░░░▀████
░░░░░░███
▄░░░░░███
▀█▄▄▄████
░░▀▀█████
▀▀▀▀▀▀▀▀▀
█████████
░░░▀▀████
██▄▄▀░███
█░░█▄░░██
░████▀▀██
█░░█▀░░██
██▀▀▄░███
░░░▄▄████
▀▀▀▀▀▀▀▀▀
|
██░░░░░░░░░░░░░░░░░░░░░░██
▀█▄░▄▄░░░░░░░░░░░░▄▄░▄█▀
▄▄███░░░░░░░░░░░░░░███▄▄
▀░▀▄▀▄░░░░░▄▄░░░░░▄▀▄▀░▀
▄▄▄▄▄▀▀▄▄▀▀▄▄▄▄▄
█░▄▄▄██████▄▄▄░█
█░▀▀████████▀▀░█
█░█▀▄▄▄▄▄▄▄▄██░█
█░█▀████████░█
█░█░██████░█
▀▄▀▄███▀▄▀
▄▀▄
▀▄▄▄▄▀▄▀▄
██▀░░░░░░░░▀██
||.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
░▀▄░▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄░▄▀
███▀▄▀█████████████████▀▄▀
█████▀▄░▄▄▄▄▄███░▄▄▄▄▄▄▀
███████▀▄▀██████░█▄▄▄▄▄▄▄▄
█████████▀▄▄░███▄▄▄▄▄▄░▄▀
███████████░███████▀▄▀
███████████░██▀▄▄▄▄▀
███████████░▀▄▀
████████████▄▀
███████████
▄▄███████▄▄
▄████▀▀▀▀▀▀▀████▄
▄███▀▄▄███████▄▄▀███▄
▄██▀▄█▀▀▀█████▀▀▀█▄▀██▄
▄██▄██████▀████░███▄██▄
███░████████▀██░████░███
███░████░█▄████▀░████░███
███░████░███▄████████░███
▀██▄▀███░█████▄█████▀▄██▀
▀██▄▀█▄▄▄██████▄██▀▄██▀
▀███▄▀▀███████▀▀▄███▀
▀████▄▄▄▄▄▄▄████▀
▀▀███████▀▀
OFFICIAL PARTNERSHIP
FAZE CLAN
SSC NAPOLI
|
20kevin20
Legendary
*
Offline Offline

Activity: 1134
Merit: 1597


View Profile
February 09, 2020, 07:13:43 PM
 #19

If a transaction is invalid, it won't even reach mining nodes, unless you broadcast it directly to them. The nodes don't waste their bandwidth on broadcasting invalid transactions, that would be vulnerable to DDOS.

Also, what you are talking about "banning transactions" is a different concept - nodes can censor valid transactions by refusing to include them, but you need to execute 51% attack to succeed at it, otherwise you'll just delay the confirmation by a block or two at best.

Well, in the scenario of a double spend isn't the first tx marked as invalid as soon as the second one goes out to the network with a higher fee?

And yes, wrong words used. Meant transaction censoring, not banning.
hatshepsut93
Legendary
*
Offline Offline

Activity: 2954
Merit: 2145



View Profile
February 09, 2020, 10:03:23 PM
Merited by 20kevin20 (3)
 #20

Well, in the scenario of a double spend isn't the first tx marked as invalid as soon as the second one goes out to the network with a higher fee?

It's only possible with RBF transactions, and if a node is aware about the most recent transaction, it will reject any previous transaction. But still these older transaction aren't 100% invalid, a miner can happen to mine an older transaction if they aren't yet aware about the new RBF transaction.

But without RBF the earliest transaction will be kept by nodes, and transactions that attempt to spend the same coin will be rejected. But until the spending is confirmed, any of those transactions can be included in a block. Broadcasting transactions isn't the only way to reach miners, you can theoretically contact miners directly, give them raw transaction and ask to include it in a block.

So, invalid in terms of being able to included in block and being able to be propagated by nodes can be slightly different things.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!