Skip to content
Alchemy Logo

Invalidate Contract Cache

GET
/v3/{apiKey}/invalidateContract

Marks all cached tokens for the specified contract as stale, ensuring the next query fetches live data instead of cached data.

Please note that this endpoint is only available on Ethereum, Polygon, Arbitrum, Optimism & Base networks.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Query Parameters

stringrequireddefaults to 0xe785E82358879F061BC3dcAC6f0444462D4b5330

String - Contract address for the NFT contract (ERC721 and ERC1155 supported).

Responses

200

Returns confirmation of cache invalidation along with the number of tokens invalidated.

Was this page helpful?