"A person who is an official, but who is not subject to the requirements of subsection 1, shall not receive, directly or indirectly, or enter into any agreement, express or implied, for any compensation, in whatever form, for the appearance or rendition of services by that person or another against the interest of the state in relation to any case, proceeding, application, or other matter before th" . . . . .