added RPC/API call for ActionType and a test