Accounts as 32-byte arrays

I’m trying to read the transactions database, as detailed here, but having a hard time converting the account from binary format in a str. I’m using python and I know that’s now supported here, but it’s all I have at the moment…

Would anyone know the correct method to decode the binary account format to a normal string in Python?

The value in the database is just a 32-byte array.

You convert that to a base 58 encoded address by using base58check with version 1, e.g., using this base58check · PyPI


  • take the 32 bytes
  • prepend a “1” byte
  • use b58_decode