$response = @file_get_contents('https://blockchain.info/api/receive?method=create&address='. $my_bitcoin_address); $object = json_decode($response); return $object->input_address;