> For the complete documentation index, see [llms.txt](https://futaba.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://futaba.gitbook.io/docs/protocol/gateway.md).

# 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.
