---
description: Contracts with endpoints for querying
---

# Gateway

Gateway Contract has a `query` function that executes a query as a query endpoint and a `receiveQuery` function that receives the result from Relayer. It also defines a `getCache` function to access the value obtained by the query as a cache.
