getTransaction for CoapHandler