Bitcoin Forum
May 22, 2024, 03:13:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lions and Tigers and API oh my !!!HELP!!!  (Read 1027 times)
thefaucetlist (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile WWW
July 12, 2014, 02:11:06 AM
 #1

Bit of a newbie here needing some help on how to integrate api into my project.

I am in the process of creating a new bitcoin game that is more skill based and less gambling.
I would like for two users to be able to wager bitcoins in a winner takes all game. Minus a small fee.

So in detail what im looking for is a way to set up each player with a address then allow them to make deposits then make wagers before the game begins and then get paid their winnings when the game is over. I know this is probably an old subject but ive been looking for hours and am starting to go cross-eyed here.

What would be the best source for this API
Also in as much detail what is the best method to set it up?

Any help is greatly appreciated hopefully I will be able to bring a beautiful new bitcoin app to the maket in the near future
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
July 12, 2014, 02:32:22 PM
 #2

You want to do all of this on-chain? It'll take a long time to do this on-chain. You will have to create a custom off-chain implementation so that only deposits and withdrawals are on-chain. Transfer of winnings from one user's account to another user's account should be off-chain or it'll be really, really slow.
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
July 13, 2014, 01:12:33 AM
 #3

Bit of a newbie here needing some help on how to integrate api into my project.

I am in the process of creating a new bitcoin game that is more skill based and less gambling.
I would like for two users to be able to wager bitcoins in a winner takes all game. Minus a small fee.

So in detail what im looking for is a way to set up each player with a address then allow them to make deposits then make wagers before the game begins and then get paid their winnings when the game is over. I know this is probably an old subject but ive been looking for hours and am starting to go cross-eyed here.

What would be the best source for this API
Also in as much detail what is the best method to set it up?

Any help is greatly appreciated hopefully I will be able to bring a beautiful new bitcoin app to the maket in the near future
As the person above me said, onchain would typically take a confirmation, taking 10minutes of their time. If you make it offchain, you could probably allow the guy to deposit earlier. If you want to do it onchain, try https://blockchain.info/api. You can relay the deposits to your hot wallet address and when the guy finishes his game you can simply withdraw from your hot wallet.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
allsopfree
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
July 13, 2014, 04:30:35 PM
 #4

Why don't you do the game off-chain, you are just clogging blockchain for no special effort.
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!