Skip to main content

Data Types

This page documents common data types used across the ETHGas API.

User​

NameTypeDescription
userIdintegerUnique ID for the user assigned by ETHGas
addressstringThe user's ethereum account address
userTypeintegerUser type. Currently all users are type 1
userClassintegerUser class: 1 = regular, 2 = VIP
statusintegerUser status. All active users have status 1
accountsAccount[]List of ETHGas current and trading accounts associated with this user

Account​

NameTypeDescription
userIdintegerUnique ID for the user assigned by ETHGas
accountIdintegerUnique ID for each of the user's current and trading accounts assigned by ETHGas
typeintegerAccount type: 1 = current account, 2 = trading account
namestringName of the account: "Current" or "Trading"
cashTokenIdsinteger[]List of tokens currently in this account. See Token IDs for list of Token IDs
statusintegerAccount status: 0 = inactive, 1 = active
updateDateintegerUpdate timestamp