overhauled BtcRpc class.