2017 © Pedro Peláez
 

library php-bitcoin-wallet

A simple PHP library for reading Bitcoin wallet.dat file.

image

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

The README.md

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";
}

The Versions

19/07 2018

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

19/07 2018

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