Skip to content

Latest commit

 

History

History
executable file
·
25 lines (18 loc) · 698 Bytes

createwallet.md

File metadata and controls

executable file
·
25 lines (18 loc) · 698 Bytes

##info.blockchain.api.createwallet package

The createwallet package contains the CreateWallet class that reflects the functionality documented at https://blockchain.info/api/create_walleti. It allows users to create new wallets as long as their API code has the 'generate wallet' permission.

Example usage:

package test;
import info.blockchain.api.createwallet.*;

public class App 
{
    public static void main(String[] args) throws Exception
    {	
    	CreateWalletResponse wallet = CreateWallet.create(
    	        "http://localhost:3000/",
    	        "A_SECURE_PASSWORD",
    	        "YOUR_API_CODE");
    	
    	System.out.println(wallet.getIdentifier());
    }
}