Skip to main content Crate quantus_miner_api Copy item path Source MiningRequest Request payload sent from Node to Miner. MiningResponse Response payload for job submission (/mine) and cancellation (/cancel). MiningResult Response payload for checking job results (/result/{job_id}). ApiResponseStatus Status codes returned in API responses. MinerMessage QUIC protocol messages exchanged between node and miner. MAX_AUTH_TOKEN_LEN Conservative max auth token length so a Ready { token } JSON frame still fits
under MAX_MESSAGE_SIZE . Larger operator-supplied tokens would make every
miner fail with an opaque framing/deserialize error. MAX_MESSAGE_SIZE Maximum message size (1 KB) to prevent memory exhaustion attacks. read_message Read a length-prefixed JSON message from an async reader. write_message Write a length-prefixed JSON message to an async writer.