Refactor of RPC API to handle Account Requests