Author

Topic: Help with Blockchain.info API + PHP (Read 721 times)

newbie
Activity: 1
Merit: 0
September 27, 2014, 05:08:36 PM
#1
I'm building an interface to create and manipulate bitcoin wallets with Blockchain.info's API. I'm relatively new to php and all things back end so I have a few questions.

When a user registers, their password is used to generate a wallet for their account. I send the info to Blockchain and fetch their wallet details like this:

   $request = "https://blockchain.info/api/v2/create_wallet?api_code=802b764f-aacd-4fed-aa84-af7fb7700432&password=".$walletPass;
   $response = json_decode(file_get_contents($request));
   $this->guid = $response->{'guid'};

Is this safe? Is there a better way to handle passwords? I'll need to include the password in any request for that user's wallet data.


 I also can't figure out how to enable double encryption without going through their website and setting it up manually. Is it possible to do this through the API?


Thanks in advance!

-Katie
Jump to: