Query user information
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/account
功能
Returns data associated with the user's exchange account.
API 描述
HTTP头
无
请求参数
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
owner | string | 否 | Ethereum address, either owner or accountId should be presented. | "0x123456" |
accountId | integer | 否 | AccountID, if owner is presented, it must be align with the owners accountId, otherwise an error occurs. | 10003 |
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/account?owner=0x123456&accountId=10003 HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
curl https://api3.loopring.io/api/v3/account\?owner\=0x123456\&accountId\=10003
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
accountId | integer | 是 | Account ID | 10 |
owner | string | 是 | Ethereum address | "0xABCD" |
frozen | boolean | 是 | The frozen state of the account, true stands for frozen, if the account is frozen, the user cant submit order. | "false" |
publicKey | Public Key |
是 | The user's public key | "{x:0x241707b cc6d7a4ccf10 304be248d343 a527e85f61b4 5d721544d027 cc1f2fb5f,y: 0x302f3a521d bdd1d0eb1944 c8323d4ac3b3 e9c9201f4aa4 3a2565054886 369d9c}" |
tags | string | 否 | Comma separated list of tags such as VIP levels, etc | "vip_1" |
nonce | integer | 是 | field.DexAccountV3.nonce | 0 |
keyNonce | integer | 是 | Nonce of users key change request, for backward compatible | 0 |
keySeed | string | 是 | KeySeed of users L2 eddsaKey, the L2 key should be generated from this seed, i.e., L2_EDDSA_KEY=eth.sign(keySeed). Otherwise, user may meet error in login loopring DEX | "Sign this message to access Loopring Exchange: 0xbbbbca6a90 1c926f240b89 eacb641d8aec 7aeafd with key nonce: 103" |
响应示例
{
"accountId" : 10,
"owner" : "0xABCD",
"frozen" : false,
"publicKey" : {
"x" : "0x241707bcc6d7a4ccf10304be248d343a527e85f61b45d721544d027cc1f2fb5f",
"y" : "0x302f3a521dbdd1d0eb1944c8323d4ac3b3e9c9201f4aa43a2565054886369d9c"
},
"tags" : "vip_1",
"nonce" : 0,
"keyNonce" : 0,
"keySeed" : "Sign this message to access Loopring Exchange: 0xbbbbca6a901c926f240b89eacb641d8aec7aeafd with key nonce: 103"
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
101001 | The address was not found |
101002 | User not found |
模型
PublicKey
Describes the users public key which is a point of the selected eclipse curve.
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
x | string | 是 | The public keys x part. | "0x241707bcc6 d7a4ccf10304 be248d343a52 7e85f61b45d7 21544d027cc1 f2fb5f" |
y | string | 是 | The public keys y part. | "0x302f3a521d bdd1d0eb1944 c8323d4ac3b3 e9c9201f4aa4 3a2565054886 369d9c" |