Author

Topic: PHP / BTC Handling users xfers (Read 219 times)

member
Activity: 134
Merit: 10
August 22, 2018, 07:15:08 AM
#7
Dear bitcoiners!

TL;DR: We made a game and we need your help to grow together!
Contact information at the bottom!

I hope you are all doing well,
We are pulling together the last parts of a real time strategy multiplayer game based on bitcoin, where players are not actually gambling, hence I believe it shouldn't be considered gambling.

The goal was to create a game where people could increase their winning chances as they get more skilled in the game. Therefore the most experienced gamers / players will be more likely to win.

As I'm writting I'm looking for support as there's a lot of things to be done yet before announcing the game in the corresponding forum section. You can take a look at the current version at https://www.bitofwar.com.

Where you can easily create a user and test it, where each kill is around 1,000 bits plus/minus fees.

Fuelled by GreenAddress, it's possible for us to make extremely fast in-game transactions, to create a friction-less gaming experience.

We have been working (and playing!) for the last 3 months in order to create, as far as we know, the real time blockchain based strategy game online! Every single game operation is saved forever
on the bitcoin blockchain.

We need community support to make this game a reality! We are planning to create tournaments, different game modalities, including team battles, last man standing and more.

Our goal is to create at least 10 online & multiplayer bitcoin games, as we believe there's a lot of room for new, creative ideas to keep expanding the bitcoin ecosystem.

Once you have an idea about what's already done and the game progress, if you feel like joining and helping us to achieve the goal, here's a brief list of current requirements:

  1) Feedback! Any kind of feedback is welcome and appreciated.
  We are still looking for bugs, programming issues, and overall,
  making the game more appealing, fast and dynamic!

  2) Graphic design: we need textures, possibly a new version of the logo,
  most of the graphic game content you can see, has only been created as a reference,
  and it represents the first version. Better tanks, bullets, and animations,
  possibly done with css transitions are required.

  3) Transaction fees! we are currently working with the block.io API,
  and we are transfering the money between internal accounts,
  in order to keep track of it, do you know or could recommend any idea
  in order to reduce the transaction fees?

  4) Marketing and advertisement: if you have a blog, or anywhere we could advertise,
  we would really appreciate your help, as well, if you believe you can
  help us refering users, we are willing to create a referal program.

  5) Do you find the game too expensive to play?
  6) Do you find the game too slow, or wish it would work faster?
  7) Do you believe the maps should be smaller for faster conflicts?
  Cool Do you believe we should include strict rules in order to prevent team formations?
  9) Instead, would you formalize any kind of "allies" or team battle?
  10) What do you think about the creation of a "Team arena" where game goes 3 vs 3 or 10 vs 10?

  11) Artificial intelligence and scripting: since this is a Peace war game,
  we have a dilemma here, in part, we believe we should
  allow artificial intelligence players, as they could perform,
  at least as good as human players, and we consider some users might want to code,
  sell and buy AI scripts. More sophisticated players could use Keras or TensorFlow
  to developt their own custom players, which might give them some consistent
  adventage over non-AI players, even more if they can't script the game.

  12) Do you believe we should allow AI players?
  13) Including an scripting box that would allow players to create their own bots?

  14) If so, would you be interested in helping us developing JS based scripts for players?

  15) Agreements and deals: if you believe you are in a position where you could
  technically, financially or friendly help each other, please don't hesitate to reach me.

  16) Partnerships! Would you like to run your own copy of the game with a few variations?
  We are looking for partners that want to take this forward! Please don't hesitate to
  send your business proposal!

In case you are wondering, the system uses a few AMIs in AWS, it's programmed in JS, using
NodeJS, Socket.io and PHP.

I wish you a good day!
Kind regards;
Chris C. Russo

Skype: chrusso99
Phone: +54 911 3939 3710
Email: [email protected]
hero member
Activity: 1582
Merit: 759
August 05, 2018, 03:15:18 AM
#6
Thanks everyone!!

It's actually for a game, not betting exactly, but an strategy game, based on bitcoin.

We have been working on the game during the last months, and it's time to make the BTC implementation.

I was as well considering to use a service, such as blockchain.com/api or blocks.io, but:

1) Do these services have any option that allow us to create temporary wallets for our users and then forward the funds into our "hot wallet"?

Xfers should be redirected from the temporary wallets into the hot wallet and kept on it until a user requests a withdraw. As well we need to transfer our gains into our "cold" wallet for storing company profits, from the hot wallet.

So, basically, it would use:

- Quick self created wallets to receive and track user's deposits.
- Transfer user's deposits into the hot wallet.
- withdraw from the hot wallet to a user defined account.
- withdraw from the hot wallet to a cold wallet the profits.

Would you recommend any company?
Kind regards;
Chris


They have a wallet API here: https://www.blockchain.com/api/blockchain_wallet_api

That will allow you to create a wallet on behalf of the user using the API.
You could also just a address method, and save every address connected to a user in a database of your own. But obviously leveraging a wallet API and having each user have their own wallet is more ideal.

I've worked on something similar in the past, it wasn't super difficult. I'd recommend blockchain.com's API, provided you have code to send the BTC to cold storage eventually
member
Activity: 134
Merit: 10
August 04, 2018, 11:53:33 PM
#5
Thanks everyone!!

It's actually for a game, not betting exactly, but an strategy game, based on bitcoin.

We have been working on the game during the last months, and it's time to make the BTC implementation.

I was as well considering to use a service, such as blockchain.com/api or blocks.io, but:

1) Do these services have any option that allow us to create temporary wallets for our users and then forward the funds into our "hot wallet"?

Xfers should be redirected from the temporary wallets into the hot wallet and kept on it until a user requests a withdraw. As well we need to transfer our gains into our "cold" wallet for storing company profits, from the hot wallet.

So, basically, it would use:

- Quick self created wallets to receive and track user's deposits.
- Transfer user's deposits into the hot wallet.
- withdraw from the hot wallet to a user defined account.
- withdraw from the hot wallet to a cold wallet the profits.

Would you recommend any company?
Kind regards;
Chris
hero member
Activity: 1582
Merit: 759
August 02, 2018, 11:46:17 PM
#4
It really depends on if you're willing to use a hosted API solution, or you HAVE to host the Bitcoin wallet yourself? You could leverage an API, for example: https://www.blockchain.com/api

I've leveraged this in the past to create wallets/addresses, detect transactions, etc. And then I would simply move the funds in excess over to cold storage using the API as well.

Using an API would be infinitely more simple, but obviously there is some risk there if you don't program it correctly. If you use cold storage along with an online wallet API, it should be fine.
legendary
Activity: 1624
Merit: 2481
August 02, 2018, 06:04:40 AM
#3
To be honest, I find this source very useful: https://github.com/zonedoutspace/BitWallet

This seems to be fine. I didn't find anything critical/vulnerable within 10 mins looking at it. This does NOT mean that it is safe to use. This does only mean there is nothing too obvious to find.

The proper way of implementing such a system would be to build it yourself. Thats the only way you can be sure of what your system is really doing. This does of course require  knowledge and time to be available.
Depending on what kind of service you are providing (i.e. amount of users, amount of BTC involved, etc..) building it yourself with security in mind might be the only way to be (as good as possible) secured against malicious actors.
legendary
Activity: 2618
Merit: 2304
August 02, 2018, 03:40:40 AM
#2
To be honest, I find this source very useful: https://github.com/zonedoutspace/BitWallet

But in the other hand, being a development from 2015, I'm worried that there could be some public known security issues on it.

I looked at this PHP-code. It seems that it locally works with JSON-RPC of bitcoind. I guess there is no any public known security issues. Perhaps this code is needed to be updated slightly. Just try to use it.
member
Activity: 134
Merit: 10
August 01, 2018, 10:10:21 PM
#1
Hi everyone!

I'm looking for a minimal PHP / BTC system that allows users to transfer bitcoin into the website, generating a new address for each transfer, and enabling them to withdraw to any address they specify when requested.

To be honest, I find this source very useful: https://github.com/zonedoutspace/BitWallet

But in the other hand, being a development from 2015, I'm worried that there could be some public known security issues on it.

Does anyone have any recommendation about how we could implement it, if it's safe, or if there's any other similar system that would allow us to handle the bitcoin xfers internally?

We already have a working system, database and users.

Kind regards;
Chris C. Russo
Jump to: