> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# userDexAbstraction | Hyperliquid info

> The info endpoint with type: "userDexAbstraction" retrieves a user's DEX abstraction configuration. Hyperliquid info via Chainstack.

> [!NOTE]
>
> This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](https://docs.chainstack.com/docs/hyperliquid-methods.md) for the full availability breakdown.

The `info` endpoint with `type: "userDexAbstraction"` retrieves a user's DEX abstraction configuration. Returns the user's current abstraction setting for perp DEX interaction, or null if not set.

## Parameters

### Request body

* `type` (string, required) — The request type. Must be `"userDexAbstraction"`.
* `user` (string, required) — Onchain address in 42-character hexadecimal format.

## Response

The response is a string representing the user's DEX abstraction configuration, or `null` if no abstraction is set.

## Example request

```shell Shell theme={"system"}
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"type": "userDexAbstraction", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"}' \
  https://hyperliquid-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/info
```

```python Python (hyperliquid-python-sdk) theme={"system"}
from hyperliquid.info import Info

info = Info("YOUR_CHAINSTACK_ENDPOINT", skip_ws=True)

result = info.query_user_dex_abstraction_state("0x31ca8395cf837de08b24da3f660e77761dfb974b")
print(result)
```

```typescript TypeScript (@nktkas/hyperliquid) theme={"system"}
import { HttpTransport, InfoClient } from "@nktkas/hyperliquid";

const transport = new HttpTransport({ apiUrl: "YOUR_CHAINSTACK_ENDPOINT" });
const info = new InfoClient({ transport });

const result = await info.userDexAbstraction({
  user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
});
console.log(result);
```

> [!NOTE]
>
> **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.

## Example response

```json theme={"system"}
null
```

## Use case

The `info` endpoint with `type: "userDexAbstraction"` is useful for:

* Checking whether a user has DEX abstraction enabled
* Determining which perp DEX a user's orders are routed to
* Building interfaces that display the user's current DEX configuration


## OpenAPI

````yaml openapi/hyperliquid_node_api/hypercore_info/info_user_dex_abstraction.json post /mt_c524ad9781ae5dccd9ac6f5b0370e/info
openapi: 3.0.0
info:
  title: Hyperliquid Node API
  version: 1.0.0
  description: This is an API for interacting with Chainstack Hyperliquid node.
servers:
  - url: https://hyperliquid-mainnet.core.chainstack.com
security: []
paths:
  /mt_c524ad9781ae5dccd9ac6f5b0370e/info:
    post:
      tags:
        - hyperliquid operations
      summary: info (userDexAbstraction)
      operationId: infoUserDexAbstraction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Request type
                  default: userDexAbstraction
                  enum:
                    - userDexAbstraction
                user:
                  type: string
                  description: Onchain address in 42-character hexadecimal format
                  default: '0x31ca8395cf837de08b24da3f660e77761dfb974b'
              required:
                - type
                - user
      responses:
        '200':
          description: User's DEX abstraction setting or null
          content:
            application/json:
              schema:
                type: object

````