Get next storage ID

Rate limit: every seconds

API Overview


HTTP method

GET

Path

/api/v3/storageId

Summary

Fetches the next order id for a given sold token. If the need arises to repeatedly place orders in a short span of time, the order id can be initially fetched through the API and then managed locally. Each new order id can be derived from adding 2 to the last one

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 Looprings account identifier 1
sellTokenId integer Y The unique identifier of the token which the user wants to sell in the next order. 0

Request example

HTTP
CURL
GET https://api3.loopring.io/api/v3/storageId?accountId=1&sellTokenId=0 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/storageId\?accountId\=1\&sellTokenId\=0

Response fields

Field Type Required Description Example
orderId integer N Next storage ID for order request, must be even 100
offchainId integer N Next storage ID for offchain requests, i.e., transfer/withdraw/updateAccount, must be odd 101

Response example

{
    "orderId" : 100,
    "offchainId" : 101
}

Status code

Value Description
100000 Unknown error
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

results matching ""

    No results matching ""