L
L
Loopring Dev Docs
Search…
⌃K

GET NFT Offchain Fee

get fee of mint, transfer, withdraw. etc

EndPoint

GET api/v3/user/nft/offchainFee
Field
Description
Example
X-API-KEY
ApiKey
"HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN"

Request

Field
Description
Example
accountId
Account ID
10110
requestType
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
(Optional) the NFT tokenAddress, needed when requestType is 9 or 10
"0xbbbbca6a901c926f240b89eacb641d8aec7aeafd"

Response

Field
Description
Example
gasPrice
gasPrice when calculating the fee
2194508101
fees
List[TokenFee]

Model

TokenFee

Field
Description
Example
token
fee token
"ETH"
fee
fee amount
"200000000000 0000"
discount
token discount. 0.8 means 80% of the fee
1.0

Example

Header

X-API-KEY = bEef7a3Nzk7lgaHm85E0O1JO5ufu0iQ96p3bCmrsZz8TLGG83jTpPDYwcjUC0vlF

Request

GET api/v3/user/nft/offchainFee
https://uat2.loopring.io/api/v3/user/nft/offchainFee?accountId=11329&requestType=10

Response

{
"gasPrice": "1500000008",
"fees": [{
"token": "ETH",
"fee": "217000000000000",
"discount": 1
},
{
"token": "LRC",
"fee": "1248000000000000000",
"discount": 1
},
{
"token": "USDT",
"fee": "1550000",
"discount": 1
},
{
"token": "DAI",
"fee": "1550000000000000000",
"discount": 1
}
]
}