<p>First create an account
<a href="https://blockchain.info/api/api_create_code" rel="nofollow">https://blockchain.info/api/api_create_code</a>
you will receive api code in email.
with which u can create ur wallet </p>

<p><a href="https://blockchain.info/api/v2/create_wallet?password=wallet-password&amp;email=email-for-wallet&amp;api_code=this-will-be-in-your-email" rel="nofollow">https://blockchain.info/api/v2/create_wallet?password=wallet-password&amp;email=email-for-wallet&amp;api_code=this-will-be-in-your-email</a></p>

CC BY-SA 3.0
2015-07-08T09:36:58.143Z
2015-07-08T09:36:58.143Z
joshin
<p>I need to pass private key while creating a wallet in blockchain.info through api call which is defined here <a href="https://blockchain.info/api/create_wallet" rel="nofollow">https://blockchain.info/api/create_wallet</a> </p>

<p>I'm using php for creating wallets. </p>

<p>Please suggest me any custom php function to create a private key (Wallet import format preferred) and pass in the create wallet api call.</p>

<p>Thanks in advance!</p>

<wallet><blockchain><blockchain.info><php>
How to generate a private key to create wallet through api in Block chain
hello world
# How to generate a private key to create wallet through api in Block chain

(Asked by: username_0 on 2015-03-04)

I need to pass private key while creating a wallet in blockchain.info through api call which is defined here <https://blockchain.info/api/create_wallet>

I'm using php for creating wallets.

Please suggest me any custom php function to create a private key (Wallet import format preferred) and pass in the create wallet api call.

Thanks in advance!

**Tags:** wallet, blockchain, blockchain.info, php


---

## 1 answers

### Answer by username_1 on 2015-07-08. Score: 1 | Accepted answer

First create an account
<https://blockchain.info/api/api_create_code>
you will receive api code in email.
with which u can create ur wallet

<https://blockchain.info/api/v2/create_wallet?password=wallet-password&email=email-for-wallet&api_code=this-will-be-in-your-email>


---

