Get token configurations
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/exchange/tokens
功能
Returns the configurations of all supported tokens, including Ether.
API 描述
HTTP头
无
请求参数
无
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/exchange/tokens 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/exchange/tokens
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
type | string | 是 | Token Type 取值范围 : ['ERC20', 'ETH'] |
"ERC20" |
tokenId | integer | 是 | Token's numeric ID | 2 |
symbol | string | 是 | Token symbol | "LRC" |
name | string | 是 | Token name | "Loopring" |
address | string | 是 | Token ERC20 contract address | "0x97241525fe 425C90eBe5A4 1127816dcFA5 954b06" |
decimals | integer | 是 | Token decimals | 18 |
precision | integer | 是 | Max decimals that relayer uses for the token, smaller amount will be treated as zero. | 6 |
precisionForOrder | integer | 是 | Max decimals that relayer uses for the token, smaller amount will be treated as zero. | 6 |
orderAmounts | Order Amounts V3 |
是 | The amount requirements for submitting orders. | "{min:100000, max:900000, dust:10}" |
luckyTokenAmounts | Order Amounts V3 |
是 | field.TokenInfoV3.luckyTokenAmounts | "{min:100000, max:900000, dust:10}" |
fastWithdrawLimit | string | 是 | The maximum amount for single fast withdrawal | "100000000000 0000" |
gasAmounts | Gas Amount LimitV3 |
是 | The gas amount requirements for user requests | "{distributio nGas:100000, depositGas:1 50000}" |
enabled | boolean | 是 | Whether the token is currently enabled for deposits and withdrawals. | "true" |
响应示例
{
"type" : "ERC20",
"tokenId" : 2,
"symbol" : "LRC",
"name" : "Loopring",
"address" : "0x97241525fe425C90eBe5A41127816dcFA5954b06",
"decimals" : 18,
"precision" : 6,
"precisionForOrder" : 6,
"orderAmounts" : {
"minimum" : "10000000000000000",
"maximum" : "1000000000000000000",
"dust" : "1000000000000000"
},
"luckyTokenAmounts" : {
"minimum" : "10000000000000000",
"maximum" : "1000000000000000000",
"dust" : "1000000000000000"
},
"fastWithdrawLimit" : "1000000000000000",
"gasAmounts" : {
"distribution" : "1000000000000000",
"deposit" : "1000000000000000"
},
"enabled" : true
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
模型
OrderAmountsV3
Contains information about the order amounts that are valid for usage with the token in order-related APIs.
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
minimum | string | 是 | The minimum amount enforced when submitting orders for the token. | "100000000000 00000" |
maximum | string | 是 | The maximum amount enforced when submitting orders for the token. | "100000000000 0000000" |
dust | string | 是 | The dust amount enforced when submitting orders for the token. | "100000000000 0000" |
GasAmountLimitV3
Contains information about the gas amounts required by ETH L1 requests.
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
distribution | string | 是 | The gas amount for withdrawal | "100000000000 0000" |
deposit | string | 是 | The gas amount for deposit | "100000000000 0000" |