I need someone to implement bitcoin functionality in a game using Coinkite's API
- or -
Post a project like this3196
$135
- Posted:
- Proposals: 3
- Remote
- #828820
- Awarded
Description
Experience Level: Intermediate
General information for the website: Game
Kind of development: Customization of existing website
Description of requirements/features: I have a pretty basic browser based game that's built with node.js and HTML5.
What I need is someone to integrate some basic bitcoin functionality with Coinkite’s pay button and API into the game. It's a multiplayer game, and it’s based on timed rounds and a score system.
What I want to have implemented:
Entry fee
Coinkite’s Pay button and API makes it really simple to accept bitcoin payments. Users can also enter return address in the payment form. I want it set up so that each user needs to pay 200 bits / 0.2mbtc / 0.0002 btc to enter the game.
When two or more players have paid an entry fee they can start the game, or choose to wait for more players.
When the game has started it goes on as normal. It's when the round has ended (approx 3 mins), and a winner is pointed out that I want the winner to get paid out all the entry fees combined. If something wrong happens users will be refunded via the refund address they provide.
Some specifications:
The entry fee needs to be high enough so that if the minimum of two players are playing, the winner ends up earning a slight bit
I’m thinking 0.0002 BTC (200 bits)
It needs to be instant and not wait any confirmations. (zero-conf transactions)
To summarize:
I have the game.
I need this to be added:
1. Paywall to enter
a. This is done with Coinkite’s Pay button and API
2. When a payment is received the user needs to get in some kind of “lobby” (keep it simple). Here the user can mark himself as ready by ticking a checkbox. When two or more users are marked as ready the game can start.
3. When the round has ended the winner needs to be paid out all entry fees combined
PM me to have a look at the actual game.
Extra info
Here is the response I got from Coinkite support team when I asked if their API and Pay button were suitable for something like this:
I'm sure you can do all that with BitKit, Coinkite's API. In fact, it's pretty easy now that we have "Pay Buttons".
You could make a button for entering a game, and send players to Coinkite to do the payment steps. Setup your button to ask for a refund address. A tracking number should be added to the link via JWT Tokens, and you'd link that back to their websocket session or whatnot.
More on that process: https://docs.coinkite.com/api/buttons.html
Not a problem to work off of zero-conf transactions, and I recommend it for this sort of thing. Just be aware you can be scammed.
You need to setup a webhook to receive notice of payments; from that, you'd move players from the lobby to their specific game.
At the end of the game, you'd do a send from your account to the winner, again via the API.
As for transaction amount, the smallest we can work with is 0.1 mBTC (1E-4 BTC). That's something like 3 cents.
For your user's convenience, I suggest a simple balance system, so they don't need to get out their bitcoin wallet for each round. Let them deposit various amount (10x 100x, etc) and cash them out at anytime with a button.
Extra notes:
Kind of development: Customization of existing website
Description of requirements/features: I have a pretty basic browser based game that's built with node.js and HTML5.
What I need is someone to integrate some basic bitcoin functionality with Coinkite’s pay button and API into the game. It's a multiplayer game, and it’s based on timed rounds and a score system.
What I want to have implemented:
Entry fee
Coinkite’s Pay button and API makes it really simple to accept bitcoin payments. Users can also enter return address in the payment form. I want it set up so that each user needs to pay 200 bits / 0.2mbtc / 0.0002 btc to enter the game.
When two or more players have paid an entry fee they can start the game, or choose to wait for more players.
When the game has started it goes on as normal. It's when the round has ended (approx 3 mins), and a winner is pointed out that I want the winner to get paid out all the entry fees combined. If something wrong happens users will be refunded via the refund address they provide.
Some specifications:
The entry fee needs to be high enough so that if the minimum of two players are playing, the winner ends up earning a slight bit
I’m thinking 0.0002 BTC (200 bits)
It needs to be instant and not wait any confirmations. (zero-conf transactions)
To summarize:
I have the game.
I need this to be added:
1. Paywall to enter
a. This is done with Coinkite’s Pay button and API
2. When a payment is received the user needs to get in some kind of “lobby” (keep it simple). Here the user can mark himself as ready by ticking a checkbox. When two or more users are marked as ready the game can start.
3. When the round has ended the winner needs to be paid out all entry fees combined
PM me to have a look at the actual game.
Extra info
Here is the response I got from Coinkite support team when I asked if their API and Pay button were suitable for something like this:
I'm sure you can do all that with BitKit, Coinkite's API. In fact, it's pretty easy now that we have "Pay Buttons".
You could make a button for entering a game, and send players to Coinkite to do the payment steps. Setup your button to ask for a refund address. A tracking number should be added to the link via JWT Tokens, and you'd link that back to their websocket session or whatnot.
More on that process: https://docs.coinkite.com/api/buttons.html
Not a problem to work off of zero-conf transactions, and I recommend it for this sort of thing. Just be aware you can be scammed.
You need to setup a webhook to receive notice of payments; from that, you'd move players from the lobby to their specific game.
At the end of the game, you'd do a send from your account to the winner, again via the API.
As for transaction amount, the smallest we can work with is 0.1 mBTC (1E-4 BTC). That's something like 3 cents.
For your user's convenience, I suggest a simple balance system, so they don't need to get out their bitcoin wallet for each round. Let them deposit various amount (10x 100x, etc) and cash them out at anytime with a button.
Extra notes:
Per P.
100% (4)Projects Completed
3
Freelancers worked with
3
Projects awarded
44%
Last project
5 Feb 2018
Norway
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies