For the complete documentation index, see llms.txt. This page is also available as Markdown.

userAbstraction

Get the account abstraction mode for a user.

POST Request

Field
Type
Description

type

string

Must be "userAbstraction"

user

string

Ethereum address (0x-prefixed, 42 characters)

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "userAbstraction",
    "user": "0x0000000000000000000000000000000000000000"
  }'
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'userAbstraction',
        'user': '0x0000000000000000000000000000000000000000'
    },
    headers={
        'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
        'Content-Type': 'application/json'
    }
)

print(response.json())
Response

Returns a string indicating the user's account abstraction mode:

"unifiedAccount"

Possible values:

Value
Description

unifiedAccount

Unified account mode

portfolioMargin

Portfolio margin mode

disabled

Abstraction disabled

default

Default mode

dexAbstraction

DEX abstraction mode (legacy, being discontinued)

Last updated