PHP code example of zhujinkui / ethtool
1. Go to this page and download the library: Download zhujinkui/ethtool 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/ */
zhujinkui / ethtool example snippets
$credential = Credential::fromWallet('123','./keystore/22cfeaa4523c1bf85b9ee6a5c1b86f97832630f7.json');
echo $credential->getPrivateKey() . PHP_EOL;
echo $credential->getPublicKey() . PHP_EOL;
echo $credential->getAddress() . PHP_EOL;