Query current fee amount

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/offchainFee

功能

Returns the fee amount

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID 0
requestType integer Off-chain request type 1
tokenSymbol string The token to withdraw "LRC"
amount string The amount to withdraw "10000000000"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/offchainFee?accountId=0&requestType=1&tokenSymbol=LRC&amount=10000000000 HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api3.loopring.io/api/v3/user/offchainFee\?accountId\=0\&requestType\=1\&tokenSymbol\=LRC\&amount\=10000000000

响应字段

字段 类型 必须 说明 举例
token string fee token "ETH"
fee string fee amount "2000000000000000"
discount number token discount 1.0

响应示例

{
    "token" : "ETH",
    "fee" : "2000000000000000",
    "discount" : 1.0
}

状态码

状态码 描述
100000 Unknown error

results matching ""

    No results matching ""