Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andkom/php-bitcoin-wallet
A simple PHP library for reading Bitcoin wallet.dat file.
https://github.com/andkom/php-bitcoin-wallet
bitcoin bitcoin-protocol bitcoin-wallet php php-library
Last synced: 3 months ago
JSON representation
A simple PHP library for reading Bitcoin wallet.dat file.
- Host: GitHub
- URL: https://github.com/andkom/php-bitcoin-wallet
- Owner: andkom
- License: mit
- Created: 2018-07-19T11:57:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-16T11:59:54.000Z (about 2 years ago)
- Last Synced: 2024-09-29T04:05:01.861Z (3 months ago)
- Topics: bitcoin, bitcoin-protocol, bitcoin-wallet, php, php-library
- Language: PHP
- Size: 46.9 KB
- Stars: 14
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PHP Bitcoin Wallet
A simple PHP library for reading Bitcoin wallet.dat file.
### Installation
```bash
composer require andkom/php-bitcoin-wallet
```### Usage
```PHP
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";
}
```