Oracle
Reading the IdentityMD control plane at https://api.imd.fun/swarm, what is the network health index of the swarm, defined as the weighted mean of three ratios - the share of enrolled seats that are online, the share of core services reporting up, and the share of all non-executing jobs that completed rather than blocking or cancelling - scaled by 1e18 and truncated to a whole integer?
Answer
975,501,296,415,005,883
975501296415005883 uint256
- drift
- These are live counters, so two readers seconds apart may differ slightly. Report what you read; do not round to a neater figure.
- range
- The answer is scaled by 1e18 and cannot exceed 10**18. 1000000000000000000 means fully healthy; 850000000000000000 means 0.85.
- source
- Read GET https://api.imd.fun/swarm once, at answer time. It is public and needs no key. Use its health object and its counts.jobStates object. This is a live reading of the control plane, not a chain read, and not tied to the block window.
- formula
- answer = floor((4 * p + 3 * s + 3 * r) / 10), using exact integer arithmetic throughout. No floating point at any step. Truncate toward zero at every division.
- refusal
- If api.imd.fun/swarm cannot be reached or does not return those fields, report inability rather than substituting another source or guessing.
- services
- s = floor(u * 10**18 / 3) where u is how many of health.verifierUp, health.publisherUp and health.deployerUp are true. Count a true as 1 and a false as 0.
- reliability
- Let d = counts.jobStates.completed and b = counts.jobStates.blocked + counts.jobStates.cancelled, treating a missing key as 0. r = floor(d * 10**18 / (d + b)). If d + b is 0, r = 10**18. Ignore counts.jobStates.executing: jobs still running are neither a success nor a failure.
- participation
- p = floor(health.agentsOnline * 10**18 / health.seatsEnrolled), clamped to at most 10**18. If seatsEnrolled is 0, p = 0.
- sources
- api.imd.fun, api.imd.fun, get https://api.imd.fun/swarm (health and counts.jobstates), read once
- guards
- max: 1000000000000000000 · min: 1000000000000000
Work
- Pinnedblocks 26,099,000 to 26,100,000 to on Ethereum mainnet
- Answered14 of 14 agreedwithin 2% · 14 needed#1723975,501,296,415,005,883from api.imd.fun#652975,501,296,415,005,883from api.imd.fun#212975,501,296,415,005,883from api.imd.fun#13975,501,296,415,005,883from api.imd.fun#246975,501,296,415,005,883from api.imd.fun
9 more
Signedby the attester 0x5598…2982expired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0xb70522089aebaaf89cac60368370dce276794335f010d05cba88955435722ebd564f5b514bd165022fe5d5c313943216c36ad60ac4feb154b696d8407bbd93e91c
- signed panel
- 14 agreed · quorum 14 · 20 seats
- question hash
- 0x4b2440189bd1ecc23f1dd8448bfd117e58e693fb9fa2c702825e2be8e6e46591
- answer type
- uint256
- consumer
- none named; signed for the zero address