Query current NFT requests fee amount

Rate limit: every seconds

API Overview


HTTP method

GET

Path

/api/v3/user/nft/offchainFee

Summary

"Returns the NFT requests fee amount"

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

Request parameters

Field Type Required Description Example
accountId integer Y Account ID 10001
requestType integer Y Off-chain request type
Allowable : ['9:NFT_MINT', '10:NFT_WITHDRAWAL', '11:NFT_TRANSFER', '13:DEPLOY_TOKENADDRESS', '19:NFT_TRANSFER_AND_UPDATE_ACCOUNT']
9
tokenAddress string N the NFT tokenAddress "0xbbbbca6a90
1c926f240b89
eacb641d8aec
7aeafd"
amount string N The amount to withdraw "10000000000"

Request example

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/nft/offchainFee?accountId=10001&requestType=9&tokenAddress=0xbbbbca6a901c926f240b89eacb641d8aec7aeafd&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/nft/offchainFee\?accountId\=10001\&requestType\=9\&tokenAddress\=0xbbbbca6a901c926f240b89eacb641d8aec7aeafd\&amount\=10000000000

Response fields

Field Type Required Description Example
token string Y fee token "ETH"
fee string Y fee amount "200000000000
0000"
discount number Y token discount 1.0

Response example

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

Status code

Value Description
100000 Unknown error

results matching ""

    No results matching ""