implemention for hash relay/stun service APIs