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

# userAbstraction | Hyperliquid Info API

> Hyperliquid userAbstraction: fetch a user's account-abstraction mode.

> [card] Credit Cost
>
> 1 per call

> [card] Processing
>
> Realtime

The Hyperliquid info endpoint with `type: "userAbstraction"` is used to fetch a user's account-abstraction mode.

> [!TIP]
>
> Estimate your monthly cost for this API using the [Pricing Calculator](https://goldrush.dev/docs/pricing-calculator.md?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fuser-abstraction).

> [!NOTE]
>
> * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "userAbstraction", "user": "..."}`.
> * The response body is a bare JSON string (for example `"disabled"`), not an object - parse it as a scalar.
> * Values seen in production are `disabled` and `unifiedAccount`; the wider native enum also includes `portfolioMargin`, `default`, and the legacy `dexAbstraction`.

Returns the account-abstraction mode configured for a wallet. The response is a single JSON string rather than an object: disabled means the account keeps separate perp and spot balances, while unifiedAccount means a single balance per asset is shared across all DEXes with cross-margin positions sharing collateral.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

**type** `string` *required*

Always `"userAbstraction"`.

**user** `string` *required*

The wallet address (lowercase 0x-prefixed hex).

### Example

```bash cURL theme={null}
curl -X POST https://hypercore.goldrushdata.com/info \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "userAbstraction",
    "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
  }'
```

```typescript TypeScript theme={null}
const response = await fetch("https://hypercore.goldrushdata.com/info", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    type: "userAbstraction",
    user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
  }),
});

const mode = await response.json();
```

```python Python theme={null}
import os, requests

response = requests.post(
    "https://hypercore.goldrushdata.com/info",
    headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
    json={
        "type": "userAbstraction",
        "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",
    },
)

mode = response.json()
```

## Response

The body is a **bare JSON string** - not an object - naming the account-abstraction mode.

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

### Field descriptions

**(response body)** `string`

Account-abstraction mode. One of:

* `disabled` - abstraction disabled; separate perp and spot balances.
* `unifiedAccount` - single balance per asset across all DEXes; cross-margin positions share collateral.
* `portfolioMargin` - single portfolio unifying eligible assets with borrowing / LTV.
* `default` - default mode.
* `dexAbstraction` - DEX abstraction mode (legacy, being discontinued).

## Related endpoints

> [card] [userFees](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-fees.md)
>
> fetch a user's fee schedule and recent daily volume.

> [card] [userRateLimit](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-rate-limit.md)
>
> fetch a user's API rate-limit usage and cap.

> [card] [userRole](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-role.md)
>
> fetch a user's account role.

> [card] [userToMultiSigSigners](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-to-multi-sig-signers.md)
>
> fetch the authorized signers for a multi-sig user.

> [card] [extraAgents](https://goldrush.dev/docs/api-reference/hyperliquid-info/extra-agents.md)
>
> list a user's approved API-agent wallets.

> [card] [subAccounts](https://goldrush.dev/docs/api-reference/hyperliquid-info/sub-accounts.md)
>
> fetch a master wallet's sub-accounts along with their full perp and spot state in a single call.

See all Hyperliquid endpoints: [Overview hub](https://goldrush.dev/docs/goldrush-hyperliquid/overview.md) · [Info API reference](https://goldrush.dev/docs/goldrush-hyperliquid/info-api/overview.md)

*Last reviewed: 2026-08-17*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.