2

I'm trying to open wallet.dat using the bsddb3 module for Python 2.7.

db = bsddb3.btopen("wallet.dat", "r")

contents of db:

{'main': '\x00\x00\x00\x02'}

I have to Which is almost nothing.

ls -l wallet.dat -> 72K

I though I could view information about the wallet, is there problem with the version of bsddb or this line of code?

1

open the database like this:

from bsddb.db import *

db = DB()
r= db.open("wallet.dat", "main", DB_BTREE, DB_RDONLY)

print "%s" % (db.items())
1
  • This does not work under python 3.
    – D R
    May 25 '15 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.