>> (p.1)
    Author Topic: Accepting Bitcoins in an online game  (Read 11191 times)
    teppy (OP)
    Full Member
    ***
    Offline Offline

    Activity: 185
    Merit: 114


    View Profile
    May 20, 2010, 07:12:30 PM
     #1

    I'm accepting Bitcoins now for A Tale in the Desert.

    I'm aware that the correct way to do it is to generate a new address for each payment, but I don't yet have the code to generate new addresses in the server. (If someone could point me to such code I'd appreciate it; I spent a few minutes poking around the source but haven't found it yet.)

    But let's say that I do have the means to generate a new Bitcoin address on the fly. A player tells the game client that he wants to subscribe. I generate an address and tell him "Send 2000 BTC to <address>", and then when the Bitcoins show up I credit his month of playtime.

    Once I have a list of all the "throwaway" addresses that I've created, how do I then go about watching all of them for incoming Bitcoins and forwarding them to my "real" account?

    What would be ideal (in my situation anyway) is for there to be a message field as part of a transaction, and then I could just tell everyone to send to my main Bitcoin address and include their character name in the message. It looks like this is supported when sending to an IP address, but not when sending to a Bitcoin address. There must be a reason for this - anyone know what that is?

    Teppy




    Dragon's Tale is the longest running Bitcoin enterprise in the world.
Page 1
Viewing Page: 1