more convenience functions to create an api interface as a user or node.