fetch_last_depth.
save_transaction and fetch_outputs.