Bitcoin Forum
May 08, 2024, 02:21:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: A thought occured today, are "bulk" transactions cheaper?  (Read 1956 times)
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 08, 2017, 09:32:45 PM
Merited by ABCbits (2)
 #1

As part of a Bitcoin service I am developing, I am going to be performing Bitcoin transactions from users in bulk, rather than immediately as part of the security design (hard to attack a system if a reply to your request comes 30 minutes later).

A thought came to mind today. Instead of running *insert amount* transactions at once, would it actually be cheaper in fees to put all the inputs and outputs from all them transactions into one massive one? Would this cause problems for the network, and mining in general if was possible for my node to throw a single TX out that was nearly 500KB in size for example?

I'd rather not cause problems for nodes, or have miners unable to add my fat ass transaction as it pushes the block size too high.

Spark payment and crypto systems.
Current status - Pre-alpha
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715134860
Hero Member
*
Offline Offline

Posts: 1715134860

View Profile Personal Message (Offline)

Ignore
1715134860
Reply with quote  #2

1715134860
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
March 08, 2017, 09:41:38 PM
Merited by ABCbits (2), Husna QA (1)
 #2

It will be cheaper for you to do the transactions as one large transaction as that cuts out the overhead required for making multiple transactions. It also reduces the risk of having long unconfirmed transaction chains which can be very problematic for the people receiving the Bitcoin.

Regarding the size of the transaction, 500 Kb is quite large. If your transaction is going to be that big, you should probably split it up into multiple transactions.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
March 08, 2017, 10:00:33 PM
Merited by ABCbits (1)
 #3

Each transaction has 10 bytes of overhead, so you'll see an immediate savings there.

Then, depending on how you are building your transactions, you may be able to reduce the number of inputs you use.  You'll see a MUCH bigger savings there, as each input will require at least 147 bytes.

Personally, I'd try to keep the transaction size below 100KB.  Larger transactions might be ok, I'm not sure, but I'm pretty confident that anything less than 100KB will be fine right now.
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 08, 2017, 10:10:43 PM
 #4

As a side effect, it will also make the transactions much harder to trace. Although these transactions would be between users of a service, from publicly available data on the chain there is no way to know what UTXO's went to which address. Like cash in a cash register really, no way to trace which customers specific coins or notes went to which bank/supplier/petrol station/p0rn mag and tissues on company expenses.

I will end up putting a limit on TX size. I guess as part of my service provides Bitcoin facilities to point of sale and EMV hardware with fees to cover overheads, I'll arrange transactions so that I take the hit for the "overhead" fees.

Each transaction has 10 bytes of overhead, so you'll see an immediate savings there.

Then, depending on how you are building your transactions, you may be able to reduce the number of inputs you use.  You'll see a MUCH bigger savings there, as each input will require at least 147 bytes.

Personally, I'd try to keep the transaction size below 100KB.  Larger transactions might be ok, I'm not sure, but I'm pretty confident that anything less than 100KB will be fine right now.

Unfortunately I can't reduce the inputs. There will be a minimum of 1 input and 2 outputs per "user" transaction within this huge combined one. It's more about saving fees for merchants who accept Bitcoin than saving it for myself.

I need to do a project pre-announcement at some point, just waiting on getting a working demo sorted first Smiley

Spark payment and crypto systems.
Current status - Pre-alpha
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
March 08, 2017, 10:23:34 PM
Merited by ABCbits (1)
 #5

Unfortunately I can't reduce the inputs. There will be a minimum of 1 input and 2 outputs per "user" transaction within this huge combined one.

That depends on what sort of use your service gets and how often the users use the service between sends.

If a single user wants to send 3 transactions in the same transaction generation time-period, then you could use just 1 input from that user and generate 4 outputs.

If 10 users all want to send to the same merchant (or same merchant address?) you could combine all 10 into a single output.

Are you planning on having the users fund an account with your service, and they your service draws down the account as the user requests transactions?  Or are you planning on building a transaction and sending it (unsigned) out to all the senders that are included so that they can ALL sign the transaction while you wait for them ALL to return their signatures?  What happens if someone never responds with a signature, do you try getting signatures again without their transaction?
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 08, 2017, 10:52:57 PM
 #6


If a single user wants to send 3 transactions in the same transaction generation time-period, then you could use just 1 input from that user and generate 4 outputs.

If 10 users all want to send to the same merchant (or same merchant address?) you could combine all 10 into a single output.

You know, I've been focussing so much on the hardware side to this I never really considered that.

It is account based, but everything still happens on the block chain. In a way that doesn't give too much information out at the moment, it takes the best bits of the Fiat banking system (no waiting for confirmations, endless methods of sending funds between accounts, both within and outside of the service and possibly a short term chargeback/transaction cancellation facility), and (unless a court warrant is provided) the anonymity of blockchain technology.

It's more of a way to provide banking type services, without the bank part, and Bitcoin is the value-carrier used. When I stop throwing boiling water all over myself (mid way through this post, boiling water and noodles straight on the frigging leg) and get some non-shite looking prototype hardware and a working back-end sorted, I'll be making a big post about it Smiley

Spark payment and crypto systems.
Current status - Pre-alpha
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
March 08, 2017, 11:50:29 PM
 #7

You know, I've been focussing so much on the hardware side to this I never really considered that.

It is account based, but everything still happens on the block chain. In a way that doesn't give too much information out at the moment, it takes the best bits of the Fiat banking system (no waiting for confirmations, endless methods of sending funds between accounts, both within and outside of the service and possibly a short term chargeback/transaction cancellation facility), and (unless a court warrant is provided) the anonymity of blockchain technology.

It's more of a way to provide banking type services, without the bank part, and Bitcoin is the value-carrier used. When I stop throwing boiling water all over myself (mid way through this post, boiling water and noodles straight on the frigging leg) and get some non-shite looking prototype hardware and a working back-end sorted, I'll be making a big post about it Smiley

Sounds interesting.

I look forward to seeing what you're offering.

I'm happy to discuss your concepts and ideas with you offline if you like.
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2300


View Profile
March 09, 2017, 01:35:40 AM
 #8

Unfortunately I can't reduce the inputs.
This is probably not true.

It is unlikely that a for-profit business is going to spend the exact same amounts of money that they receive (otherwise you probably wouldn't be earning a profit), and as a result of this, it is likely that you will need to send a BTC to a change address for each transaction that you send. Sending to 10 change addresses in 10 transactions is going to be more expensive than sending to 1 change address in one transaction. If you split up your transactions so that you have one transaction for each payment, then you are going to have to eventually spend the money that you sent to these change addresses, which would cause you to have an additional input for each change address.

With limitations, for each transaction you can eliminate to combine multiple payments into one transaction, you will save the cost associated with one input and one output.
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 10, 2017, 05:29:49 PM
 #9

This is probably not true.

It is unlikely that a for-profit business is going to spend the exact same amounts of money that they receive (otherwise you probably wouldn't be earning a profit), and as a result of this, it is likely that you will need to send a BTC to a change address for each transaction that you send. Sending to 10 change addresses in 10 transactions is going to be more expensive than sending to 1 change address in one transaction. If you split up your transactions so that you have one transaction for each payment, then you are going to have to eventually spend the money that you sent to these change addresses, which would cause you to have an additional input for each change address.

With limitations, for each transaction you can eliminate to combine multiple payments into one transaction, you will save the cost associated with one input and one output.

Part of it is similar to a web wallet. Each user has their own keys and addresses rather than just a number in a database that shows how much they have. Instead of sending each transaction to the network as soon as it is made, I will add them together into one larger one saving on overhead.

The exact working out of it all is yet to be figured out. At the moment I am writing software for card terminals Smiley

Spark payment and crypto systems.
Current status - Pre-alpha
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1825



View Profile
March 11, 2017, 04:45:51 AM
 #10

As part of a Bitcoin service I am developing, I am going to be performing Bitcoin transactions from users in bulk, rather than immediately as part of the security design (hard to attack a system if a reply to your request comes 30 minutes later).

A thought came to mind today. Instead of running *insert amount* transactions at once, would it actually be cheaper in fees to put all the inputs and outputs from all them transactions into one massive one? Would this cause problems for the network, and mining in general if was possible for my node to throw a single TX out that was nearly 500KB in size for example?

I'd rather not cause problems for nodes, or have miners unable to add my fat ass transaction as it pushes the block size too high.

I had the same idea in mind when I started this thread https://bitcointalk.org/index.php?topic=1820131.0

The idea is Blockchain.info will be in a good position to do something like your service but with a different model. Basically I foresee Blockchain.info will have arrangements with different Bitcoin services to process transactions with an internal ledger first. Fees will be cheaper than what your paying with present fees now. Then later Blockchain.info will settle the transactions in the blockchain by bulk.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
March 11, 2017, 10:44:25 AM
 #11


Personally, I'd try to keep the transaction size below 100KB.  Larger transactions might be ok, I'm not sure, but I'm pretty confident that anything less than 100KB will be fine right now.

Correct me if I am wrong but there is nothing in the protocol that prevents you from making bigger transactions. And I can think of at least one transaction from 2015 that was nearly 1000000 bytes (~1 MB) and it was mined with no problem.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 11, 2017, 04:30:43 PM
Last edit: March 11, 2017, 04:41:14 PM by lukew
 #12

I had the same idea in mind when I started this thread https://bitcointalk.org/index.php?topic=1820131.0

The idea is Blockchain.info will be in a good position to do something like your service but with a different model. Basically I foresee Blockchain.info will have arrangements with different Bitcoin services to process transactions with an internal ledger first. Fees will be cheaper than what your paying with present fees now. Then later Blockchain.info will settle the transactions in the blockchain by bulk.

There seems to be a rather large dislike towards off-chain transactions and wallet services holding keys on here, but as the block reward keeps going down, fees are going to go up. Bitcoin will most likely end up as nothing but a digital gold. No-one transacts with gold any more, and the cost of doing so is too high for smaller amounts anyway.

Paying tens of dollars/pounds/whatever is OK for a transaction with a dollar/pound value of thousands, but where the technology can really show value is in smaller transactions. Burger vans, small cafe's, mobile traders etc, Bitcoin is an ideal solution for them to accept digital payments, but if the fee for a burger is a third of the price, it's not worth it. The trader won't accept that loss, and the customer won't pay that much extra either. There is also the confirmation time. You could potentially wait hours for a transaction to be confirmed if you pay the "normal" fee, if there's investors or exchanges paying higher fees to get their transactions on the chain ASAP.

It is a fairly new technology with a strong community, and a lot of places (as in real physical stores) do accept it as payment, but it's nowhere near as quick as waving my phone on a terminal and paying in 2 seconds. That's what people want. Simple, easy and fast. I'm actually putting a lot of time and money (that I  don't really have at the moment) into creating a payment system that has the convenience and speed of EMV/EFT, but also keeps away from the "PayPal for Bitcoin" concept. I even have an idea to, even in the event of all servers and backups being destroyed, give users a way to get 100% of their Bitcoin back (not accounting for pending transactions that didn't make it).

What could work as a solution is a second block chain. Optimised for fast transaction times and used for transactions between exchanges/payment processors etc. Coins mined on this chain would have no value, and it would require all participating services to partially trust each other. When a user wants to use one of the services on this chain, they would send funds to a multi-sig address with a key held by each participating service provider. The user is then given a pre-mined coin to that BTC value and it can be transacted as normal. On wanting to take funds back to the main chain, x amount of providers will have to agree that the user doesn't have any outstanding transactions to be confirmed and the amount they want to take out is correct. They then sign the TX on the main chain and the user gets their "real" Bitcoin back.

Of course, mining for no reward would be an issue, however that could be worked out, likely.

Spark payment and crypto systems.
Current status - Pre-alpha
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1825



View Profile
March 12, 2017, 06:09:06 AM
 #13

That is one long reply there. Anyway why have a second blockchain? You can use altcoins if you want. Roger Ver has tweeted that he has sent $100k through using Dash. The fees were costed him only a few pennies.

There is also a trustless way to do what I posted above. It is called the Lightning Network.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 12, 2017, 01:04:37 PM
 #14

That is one long reply there. Anyway why have a second blockchain? You can use altcoins if you want. Roger Ver has tweeted that he has sent $100k through using Dash. The fees were costed him only a few pennies.

There is also a trustless way to do what I posted above. It is called the Lightning Network.

I was going to use Bitcoin as it has the largest user base, is easy to get hold of and is unlikely to vanish any time soon. To  be honest I am considering focusing on the hardware and payment processing side, and trying to find an existing and trusted Bitcoin service provider to handle the back-end Bitcoin transactions and keeping data secure.

Spark payment and crypto systems.
Current status - Pre-alpha
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 12, 2017, 01:32:33 PM
 #15

As part of a Bitcoin service I am developing, I am going to be performing Bitcoin transactions from users in bulk, rather than immediately as part of the security design (hard to attack a system if a reply to your request comes 30 minutes later).

A thought came to mind today. Instead of running *insert amount* transactions at once, would it actually be cheaper in fees to put all the inputs and outputs from all them transactions into one massive one? Would this cause problems for the network, and mining in general if was possible for my node to throw a single TX out that was nearly 500KB in size for example?

I'd rather not cause problems for nodes, or have miners unable to add my fat ass transaction as it pushes the block size too high.

This will definitely save you money.
You pay for the number of bytes you send. There will be a smaller amount of bytes required to make this transaction ue to there being less input scripts required and the main information required that also uses space in the transaction size.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 12, 2017, 01:37:43 PM
 #16

That is one long reply there. Anyway why have a second blockchain? You can use altcoins if you want. Roger Ver has tweeted that he has sent $100k through using Dash. The fees were costed him only a few pennies.

There is also a trustless way to do what I posted above. It is called the Lightning Network.

I was going to use Bitcoin as it has the largest user base, is easy to get hold of and is unlikely to vanish any time soon. To  be honest I am considering focusing on the hardware and payment processing side, and trying to find an existing and trusted Bitcoin service provider to handle the back-end Bitcoin transactions and keeping data secure.

You'd probably have to find a mining company that can mine your blocks for you as well for a subscription fee and then you won't have to pay any transaction fees (but that might be quite unlikely).
I think the Dash suggestion was due to their stansactions being much faster than bitcoin. There are other coins like doge and litecoin (doge is not used very much now but a new block can appear every 60 seconds on average so may be useful and will have small/no fees due to no one else using it very much). These three coins have been going a few years already so should be fairly secure (a similar security to bitcoin - they use most of the Bitcoin code as well).
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 12, 2017, 03:13:20 PM
 #17

I'm looking at Litecoin at the moment, having issues getting the Testnet blockchain to download though :/

Spark payment and crypto systems.
Current status - Pre-alpha
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 12, 2017, 08:18:12 PM
 #18

I'm looking at Litecoin at the moment, having issues getting the Testnet blockchain to download though :/

Is the testnet working yet? If not, you might want to look in the altcoin section to see if anyone has any help for you.



Also, you said in a previous post that there may be a problem with getting miners that function for no reward, actually, if there was no reward, regular node computers that need to run in order to host wallets could be used for the network (In a time when Bitcoin was first released, the difficulty of each block was that of the difficulty a computer could handle). If companies were to use it and were running it in order to confirm transactions that were sent to them at least then it would work with the blocks quite well.
lukew (OP)
Jr. Member
*
Offline Offline

Activity: 81
Merit: 4


View Profile
March 12, 2017, 08:24:20 PM
 #19

Is the testnet working yet? If not, you might want to look in the altcoin section to see if anyone has any help for you.

Pope of nope. I can keep using the Bitcoin testnet for the moment as I have 10BTC on it, and mobile apps that I know work properly. The software is modular so changing coin on the back-end is easy.

I guess when I have a more substantial prototype system working trying to work on an inter-service blockchain for off-main transactions would be a possibility. Not going to look into that yet though, someone else may have sorted it by the time I am near a working system.

Spark payment and crypto systems.
Current status - Pre-alpha
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1825



View Profile
March 13, 2017, 04:18:32 AM
 #20

That is one long reply there. Anyway why have a second blockchain? You can use altcoins if you want. Roger Ver has tweeted that he has sent $100k through using Dash. The fees were costed him only a few pennies.

There is also a trustless way to do what I posted above. It is called the Lightning Network.

I was going to use Bitcoin as it has the largest user base, is easy to get hold of and is unlikely to vanish any time soon. To  be honest I am considering focusing on the hardware and payment processing side, and trying to find an existing and trusted Bitcoin service provider to handle the back-end Bitcoin transactions and keeping data secure.

You'd probably have to find a mining company that can mine your blocks for you as well for a subscription fee and then you won't have to pay any transaction fees (but that might be quite unlikely).
I think the Dash suggestion was due to their stansactions being much faster than bitcoin. There are other coins like doge and litecoin (doge is not used very much now but a new block can appear every 60 seconds on average so may be useful and will have small/no fees due to no one else using it very much). These three coins have been going a few years already so should be fairly secure (a similar security to bitcoin - they use most of the Bitcoin code as well).

I believe Roger Ver has vested interest when he made that comment. He may have invested in Dash months before making it. I also see it as a spite on Bitcoin because there are not enough supporters on their Bitcoin Unlimited hard fork. Instead of creating the BU altcoin he is now supporting an altcoin.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Pages: [1] 2 »  All
  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!