write/extract transactions and balance