Bitcoin Forum
May 04, 2024, 08:42:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ISO Wallet With API No Fee for Wallet - Wallet  (Read 492 times)
TwoKindz (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 14, 2016, 05:38:02 AM
 #1

Anyhow I'm making a applications that requires wallets. I was using blockchain.info/merchants api.

I realized that their is a free transferring between accounts/wallets. That wont work for my applications.

I like how blockchain.info has php calls for json and such that is where my understanding is.

Basically I have User1 bets against user2 and user1 wins. They user twos fund transfer to User1. Again that's why I went with blockchain.info because of the label.

If their is a way around the fee or another possible wallet that would be great.
1714855321
Hero Member
*
Offline Offline

Posts: 1714855321

View Profile Personal Message (Offline)

Ignore
1714855321
Reply with quote  #2

1714855321
Report to moderator
1714855321
Hero Member
*
Offline Offline

Posts: 1714855321

View Profile Personal Message (Offline)

Ignore
1714855321
Reply with quote  #2

1714855321
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.
1714855321
Hero Member
*
Offline Offline

Posts: 1714855321

View Profile Personal Message (Offline)

Ignore
1714855321
Reply with quote  #2

1714855321
Report to moderator
MartinL
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
November 14, 2016, 07:55:02 AM
 #2

Generally you would simply credit and debit the users' respective accounts in your database without actually moving any Bitcoin. In other words, a user's balance is increased when he deposits, increased and decreased as he wins and loses games and finally decreased when he withdraws. The only time you need to transfer any Bitcoins is during that last step, when a user withdraws.

An unrelated consideration is whether you should use a third party wallet provider at all. Aside from the obvious trust issue your service will be–at least partially–unavailable whenever your wallet provider is experiencing problems. In the case of Blockchain.info specifically this seems to happen quite frequently.
TwoKindz (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 15, 2016, 01:06:45 AM
 #3


So I would go about it like this:

1.) User Deposits BitCoins
2.) Credit The users Account
3.) User Plays a game and wins x2 of the original deposit
3.) User Requests a withdraw
4.) All funds are moved to the hotwallet
5.) Withdraw that is requested from step 3 is paid by the hot wallet.
MartinL
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
November 15, 2016, 08:18:59 AM
 #4

That looks about right. In the simplest case, users deposit directly to your hot wallet, so step 4 would become unnecessary as the funds are already there.
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!