Data Types
This page documents common data types used across the ETHGas API.
User
| Name | Type | Description |
|---|---|---|
| userId | integer | Unique ID for the user assigned by ETHGas |
| address | string | The user's ethereum account address |
| userType | integer | User type. Currently all users are type 1 |
| userClass | integer | User class: 1 = regular, 2 = VIP |
| status | integer | User status. All active users have status 1 |
| accounts | Account[] | List of ETHGas current and trading accounts associated with this user |
Account
| Name | Type | Description |
|---|---|---|
| userId | integer | Unique ID for the user assigned by ETHGas |
| accountId | integer | Unique ID for each of the user's current and trading accounts assigned by ETHGas |
| type | integer | Account type: 1 = current account, 2 = trading account |
| name | string | Name of the account: "Current" or "Trading" |
| cashTokenIds | integer[] | List of tokens currently in this account. See Token IDs for list of Token IDs |
| status | integer | Account status: 0 = inactive, 1 = active |
| updateDate | integer | Update timestamp |