getBalance filters by minConf
createTx validates destination address
move createTx validations to a validator file
move createTx validation logic tests to its own test file