PHP code example of abeltranp9476 / cripto-generador

1. Go to this page and download the library: Download abeltranp9476/cripto-generador library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

abeltranp9476 / cripto-generador example snippets




use CriptoGenerador\HD;


$criptoGen = new HD(); /* Crear nueva instancia de la clase HD */

try {
$criptoGen->set_network('bitcoin');
} catch(\Exception $ex) {
    echo $ex->getMessage();
}

try {
$criptoGen->set_pub('Tu Master Public Key'); /* Escriba la clave maestra publica de su wallet Bitcoin */
} catch(\Exception $ex) {
    echo $ex->getMessage();
}

try {
echo $criptoGen->address_from_master_pub('0/0'); /* Genera la primera direccion BTC para depositos */
} catch(\Exception $ex) {
    echo $ex->getMessage();
}