Bitcoin Forum
May 18, 2021, 03:24:42 PM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 8 9 10 »
1  Bitcoin / Development & Technical Discussion / How to read wallet.dat in PHP? on: March 23, 2014, 05:23:38 PM
I am trying to read content of wallet.dat in PHP and I have search around and it seems surprisingly no one has mention it before.

I have this code which I am trying to loop around all the key/values in wallet.dat but I only get one key, "main". I guess main seems to be logical db name. ( https://github.com/bitcoin/bitcoin/blob/v0.9.0/src/db.cpp#L260 ) Do anyone know why it only finds main and not other key/values? The wallet is unencrypted.

Code
Code:
<?php
print_r
(dba_handlers(true));

$id dba_popen("wallet.dat""r""db4");

if (!
$id) {
    echo 
"dba_open failed\n";
    exit;
}

$key dba_firstkey($id);
$keys = array();
while (
$key != false) {
    
$value dba_fetch($key$id);
    
$keys[] = array($key$value);
    
$key dba_nextkey($id);
}

print_r($keys);

dba_close($id);

Output
Code:
Array
(
    [db4] => Berkeley DB 4.8.24: (August 14, 2009)
)
Array
(
    [0] => Array
        (
            [0] => main
            [1] => 
        )

)

I ran this in XAMPP 1.7.3 which has PHP 5.3.1 and php_dba.dll
2  Economy / Gambling / Re: [TOP] InsWeb: InsDice.US | +Dice 1% H.E | +Realtime Ponzi 120% PAID 108.019 BTC! on: February 10, 2014, 06:33:06 AM
Don't worry, with ponzi.io you aren't guaranteed to get back your money.
At insdice it's guaranteed.
Today I will set auto payout ready with some cool features.
And ponzi will go faster.

Sounds awesome!
3  Economy / Gambling / Re: [TOP] InsWeb: InsDice.US | +Dice 1% H.E | +Realtime Ponzi 120% PAID 108.019 BTC! on: February 09, 2014, 11:11:17 PM
This great game should never end Smiley
4  Economy / Investor-based games / Re: Ponzi.io - Fast, Guaranteed 120% Payouts on: February 09, 2014, 09:02:54 AM
Great game
5  Economy / Services / Re: 0.4 BTC / month free (Best payouts - NO POSTING NEEDED & Updated :) on: October 17, 2013, 05:54:20 PM
Payment received, Thanks!
6  Economy / Services / Re: 0.4 BTC / month free (Best payouts - NO POSTING NEEDED & Updated :) on: September 11, 2013, 08:12:14 PM
Thank you TF! I received the payout!
7  Economy / Services / Re: 0.4 BTC / month free (Best payouts - NO POSTING NEEDED & Updated :) on: September 09, 2013, 04:18:54 PM
I havent received any either
8  Economy / Service Announcements / Re: Inputs.io | Instant Payments | Easy API | Secure Wallet | Offchain | No fees on: August 09, 2013, 06:05:29 PM
Any plans to support litecoin?
9  Economy / Services / Re: 0.4 BTC / month free (Best payouts - NO POSTING NEEDED & Updated :) on: August 08, 2013, 12:12:45 PM
1v.io/codler
10  Local / Skandinavisk / Re: [ANN] Justcoin (Norway) NOK/EUR - BTC/LTC/XRP on: August 07, 2013, 08:29:02 AM
Varför måste man verifiera med sin telefon?
11  Alternate cryptocurrencies / Altcoin Discussion / Re: Ripple Giveaway! on: August 06, 2013, 10:21:37 PM
rw9rUTky3ur5fokueYoiQAoKji9nFL7qrc
12  Economy / Exchanges / Re: MtGox withdrawal delays [Gathering] on: July 30, 2013, 04:25:15 PM
Today I got my SEPA withdrawal from 2013-05-30

Great, thanks for the heads up!



EURO?

yes
13  Economy / Exchanges / Re: MtGox withdrawal delays [Gathering] on: July 30, 2013, 03:47:54 PM
Today I got my SEPA withdrawal from 2013-05-30
14  Economy / Games and rounds / Re: BTCJam forum name verification on: July 16, 2013, 04:29:53 PM
'I want to link my Bitcointalk name with BTCJam's. Verification code: 059ef3ef-f6dc-4a48-a428-8afc4c524d00'
15  Economy / Exchanges / Re: MtGox withdrawal delays [Gathering] on: July 15, 2013, 04:20:21 PM
I have waited more than 7weeks now.
16  Economy / Currency exchange / Re: [WTB] BTC for Skrill on: April 12, 2013, 07:29:43 PM
bump
17  Economy / Currency exchange / Re: [WTB] BTC for Skrill on: April 11, 2013, 03:48:09 PM
bumb
18  Economy / Currency exchange / Re: [ WTS ] 0.11 BTC - for Moneybookers Funds $25 USD on: April 09, 2013, 03:54:32 PM
any offers?

If interested, email:
patricktim268@yahoo.com

Im interested
19  Economy / Currency exchange / Re: [WTB] BTC for Skrill on: April 08, 2013, 03:55:31 PM
still buying
20  Economy / Currency exchange / Re: [WTB]BTC/mtgoxUSD for Moneybookers, Neteller, Bank transfer Norway,Pokerstars+++ on: April 07, 2013, 12:25:07 PM
Quick and good trader!
Pages: [1] 2 3 4 5 6 7 8 9 10 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!