This sample code demonstrate how you can create a wallet, as documented here at:
http://dev.blockcypher.com/#wallet_api
API used: POST /v1/btc/main/wallets
require__DIR__ . '/../bootstrap.php';
if (isset($_GET['wallet_name'])) {
$walletName = filter_input(INPUT_GET, 'wallet_name', FILTER_SANITIZE_SPECIAL_CHARS);
} else {
$walletName = 'alice'; // Default wallet name for samples
}
Create Wallet Sample
This sample code demonstrate how you can create a wallet, as documented here at: http://dev.blockcypher.com/#wallet_api API used: POST /v1/btc/main/wallets