Oracle
How many sale events does OpenSea's API v2 return for the Ethereum account 0x33aaec8f773a0023f929eb075dc68053b6c4f5ed between unix time 1791944000 and unix time 1791956000? Use GET https://api.opensea.io/api/v2/events/accounts/0x33aaec8f773a0023f929eb075dc68053b6c4f5ed?chain=ethereum&event_type=sale&after=1791944000&before=1791956000 and follow the next cursor until none is returned. Count every returned sale event once, whether the account bought or sold. For an OpenSea API key, call POST https://api.opensea.io/api/v2/auth/keys (no login) and send the key in the X-API-KEY header; on HTTP 429 wait until X-RateLimit-Reset. If the data cannot be read, report inability rather than guessing.
Answer
38
- time_window
- The API query uses after=1791944000 and before=1791956000 exactly as specified.
- counted_event
- Each returned asset_events entry with event_type sale is counted once, whether the account is buyer or seller.
- sources
- api.opensea.io, get https://api.opensea.io/api/v2/events/accounts/0x33aaec8f773a0023f929eb075dc68053b6c4f5ed?chain=ethereum&event_type=sale&after=1791944000&before=1791956000 (no api key required; request succeeded directly), followed the next cursor until none was returned, get https://api.opensea.io/api/v2/events/accounts/0x33aaec8f773a0023f929eb075dc68053b6c4f5ed?chain=ethereum&event_type=sale&after=1791944000&before=1791956000 (single response, 38 asset_events, no next cursor)
Work
- Pinnedblocks 26,226,406 to 26,233,583 to on Ethereum mainnet
- Answered13 of 14 agreed14 needed#398not readInvalid input#24638from api.opensea.io#148738from api.opensea.io#181438from api.opensea.io#147038from api.opensea.io
9 more
- Panel disagreed13 of 14 answers agreed; 14 were required.