Bitcoin Forum
May 22, 2024, 05:01:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Send Bitcoin from 1 address to multiple addresses with one transaction  (Read 99 times)
adamcro (OP)
Member
**
Offline Offline

Activity: 276
Merit: 23


View Profile
January 08, 2022, 01:24:08 PM
 #1

I want to build a marketplace, so there is a buyer and a seller. So when a buyer buys something from the seller I take the fee. Thus part of buyer's money goes to my account like (10%) and the rest to the seller.

Is there any payment provider in the crypto world that allows that, either through a payment provider or to code it by myself? Or if there isn't, what's possible solution for my problem?

BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1526
Merit: 7413


Farewell, Leo


View Profile
January 08, 2022, 02:32:03 PM
 #2

The thing is simple; you give the buyer's your receiving address and once they've sent the money you send that amount of money minus the fee to the seller. Both of them have to trust you either way.

Now if there's a payment provider that does that, none that I'm aware, but it shouldn't be difficult to code this.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5829


not your keys, not your coins!


View Profile WWW
January 08, 2022, 02:36:18 PM
 #3

For implementing any type of marketplace, shop, etc., I'd recommend to run a self-hosted BTCPay Server.

Bitcoin can definitely handle single-input, multiple-output transactions; that's actually the most common type of transaction, with the second output being change. I don't think that BTCPay Server or any other payment processor has a feature specifically for it though. So your best bet might be modifying the code yourself.

The easier thing to do however, would most probably be to receive all the payments in your own wallet & then periodically paying out the recipients in batches. Since you can pay dozens of recipients with a single transaction, it won't add much cost overhead and would require no changes to BTCPay Server.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
adamcro (OP)
Member
**
Offline Offline

Activity: 276
Merit: 23


View Profile
January 08, 2022, 04:14:53 PM
 #4

The thing is simple; you give the buyer's your receiving address and once they've sent the money you send that amount of money minus the fee to the seller. Both of them have to trust you either way.

Now if there's a payment provider that does that, none that I'm aware, but it shouldn't be difficult to code this.

You are saying what n0nce above said? I need to code some semi-custom solution?

BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1526
Merit: 7413


Farewell, Leo


View Profile
January 08, 2022, 04:52:32 PM
 #5

You are saying what n0nce above said? I need to code some semi-custom solution?

Yes. You'll have to modify the BTCPay server source code.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!