> For the complete documentation index, see [llms.txt](https://docs.hyperplay.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperplay.xyz/developer-docs/api.md).

# API for Native Games (EVM)

## Overview

HyperPlay is a web3-native game launcher with wallet integration. The launcher acts as a proxy between the desktop game and wallet. Any game on HyperPlay can trigger a wallet interaction with a simple HTTP request.

* Game triggers a HTTP request
* HyperPlay launcher receives the request and forwards it to the player's wallet
* If the player connected via MetaMask Mobile or WalletConnect, there will be a mobile popup
* If the player connected via MetaMask Extension, there will be an in game overlay
* The player can decide to approve or reject the transaction

<figure><img src="/files/ikpbDyjBnRivXn2LaTYE" alt=""><figcaption></figcaption></figure>

## All JSON RPC Endpoints

The HyperPlay API references many of the calls found in MetaMask's and geth's JSON RPC endpoints. The next sections will provide some examples.

{% embed url="<https://metamask.github.io/api-playground/api-documentation>" %}

{% embed url="<https://ethereumbuilders.gitbooks.io/guide/content/en/ethereum_json_rpc.html>" %}

## Quick Start

{% embed url="<https://youtu.be/EpdoYwEm8qE>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hyperplay.xyz/developer-docs/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
