getInfo using RPC instead of websockets