run_hook for send_tx