# Why Hyperliquid?

### Hyperliquid L1

The Hyperliquid blockchain features two key components: **HyperCore and HyperEVM.**&#x20;

HyperEVM is a generalized EVM environment, and HyperCore is a high performance CLOB powering spot and perp order books. The HyperEVM is not a separate chain, but rather, secured by the same HyperBFT consensus as HyperCore. This lets the HyperEVM interact directly with HyperCore.

### HyperEVM

HyperEVM can compose with HyperCore using read pre-compiles and the CoreWriter contract. These two enable the following:

* Read precompiles allow HyperEVM contracts to query the state of the HyperCore, including methods for querying information such as perps positions, spot balances, and oracle prices
* CoreWriter allows HyperEVM contracts to transfer assets between HyperEVM and HyperCore, place orders, and delegate trading access to the account via API wallets

### HyperCore

HyperCore is a fully onchain, high performance CLOB, that supports spot and perp markets. HyperCore allows for delegated account access via [API wallets](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/nonces-and-api-wallets). API wallets allow for a HyperCore account to delegate *some* account privileges to an agent. In particular, API wallets can transfer assets between spot and perp sub-accounts, and allow for the placement of orders against the exchange. API wallets DO NOT allow for the withdrawal of assets from the account, allowing for agents to execute trading strategies without custody of assets.

### How Button leverages Hyperliquid

Putting together the HyperEVM and HyperCore components, Button can build the following:

1. **Credit layer on HyperEVM:** Smart contracts on HyperEVM manage deposits, collateral accounting, and lending.
2. **Strategy layer on HyperEVM:** Smart contracts on HyperEVM that manage the rules of a strategy, allowing the credit layer to intelligently underwrite strategies. Strategies transfer assets between HyperEVM and HyperCore, delegating strategy execution via API wallets.
3. **Strategy execution on HyperCore:** Button's offchain engine uses API wallets to execute complex trading strategies directly on HyperCore, ensuring that asset custody never leaves Button's strategy smart contracts.


---

# Agent Instructions: 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:

```
GET https://button-labs.gitbook.io/button/gKgg6YSLPuW40VjoL4W1/about-button/why-hyperliquid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
