bc api tx unix time
refactoring