library php-bitcoin-wallet
A simple PHP library for reading Bitcoin wallet.dat file.
andkom/php-bitcoin-wallet
A simple PHP library for reading Bitcoin wallet.dat file.
- Thursday, July 19, 2018
- by andkom
- Repository
- 1 Watchers
- 0 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
PHP Bitcoin Wallet
A simple PHP library for reading Bitcoin wallet.dat file., (*1)
Installation
composer require andkom/php-bitcoin-wallet
Usage
<?php
use AndKom\Bitcoin\Wallet\Wallet;
// create wallet instance
$wallet = new Wallet();
$wallet->read("/path/to/wallet.dat");
// check if wallet is encrypted
if ($wallet->isEncrypted()) {
// print wallet master key
echo $wallet->getMasterKey()->getEncryptedKey() . "\n";
// decrypt wallet
$wallet->decrypt("password");
}
// print stored keys
foreach ($wallet->getKeys() as $key) {
echo $key->getPrivateKey()->toWif() . " => " . $key->getPublicKey()->getAddress()->getAddress() . "\n";
}
dev-master
9999999-dev
A simple PHP library for reading Bitcoin wallet.dat file.
Sources
Download
MIT
The Requires
The Development Requires
by
Andrei Komarov
bitcoin
wallet
wallet.dat
1.0.0
1.0.0.0
A simple PHP library for reading Bitcoin wallet.dat file.
Sources
Download
MIT
The Requires
The Development Requires
by
Andrei Komarov
bitcoin
wallet
wallet.dat