functionalize the code for determining the type of sign
to be placed and the on_receive_fields calls, expose them in the API.