This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19528 | core#19528]] [3/4]
https://github.com/bitcoin/bitcoin/pull/19528/commits/fa50bdc755489b2e291ea5ba0e39e44a20c6c6de
Note: one line of documentation for the `echo` RPC seems to have been
accidentaly deleted in D5920. This restores it before applying the
change.
Depends on D10081