subAccounts

Get subaccount information for a user.

Get subaccount information for a user.

POST Request

Field
Type
Description

type

string

Must be "subAccounts"

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": "subAccounts",
    "user": "0x0000000000000000000000000000000000000000"
  }'

Response Fields

Field
Type
Description

role

string

Account role (e.g. "subAccount")

data

object

Role-specific data

data.master

string

Master account address (when role is "subAccount")

Response
{
    "role": "subAccount",
    "data": {
        "master": "0x..."
    }
}

Last updated