Refactor send_tx
methods into plain functions
#2044
Merged
send_tx
methods into plain functions
#2044