Submit a transfer request

Rate limit: 3 every second

API Overview


HTTP method

POST

Path

/api/v2/transfer

Summary

Submit a transfer request

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"
X-API-SIG string Y Signature "138345244293157165270722452892
010987433674489288289416943333
00773464291931668,192524381644
249809013234960675797674572982
626096331826549685003177960107
94338,129650216991857917204601
962488677667247381368354153200
8712357317204831986826"

Request parameters

Field Type Required Description Example
exchangeId integer Y Exchange id 1
sender integer Y Sender account id 1
receiver integer Y Recipient account id 2
token integer Y Id of token to transfer 1
tokenF integer Y Token id of transfer fee 1
amount string Y Transfer amount "1000000000000000000"
amountF string Y Transfer fee amount "1000000000000000000"
nonce integer Y Loopring exchange off-chain request nonce 1
label integer Y Transfer label, used to indicate the order attribute or source, etc., to participate in transfer signature, value range 0 ~ 65535 211
signatureRx string Y Rx part of transfer signed result "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
signatureRy string Y Ry part of transfer signed result "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
signatureS string Y S part of transfer signed result "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
memo string N Transfer memo "Air Drop"

Request example

HTTP
CURL
POST https://api.loopring.io/api/v2/transfer HTTP/1.1
Host: api.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
X-API-SIG: dkkfinfasdf
Content-Type: application/json

{
    "exchangeId" : 1,
    "sender" : 1,
    "receiver" : 2,
    "token" : 1,
    "tokenF" : 1,
    "amount" : "1000000000000000000",
    "amountF" : "1000000000000000000",
    "nonce" : 1,
    "label" : 211,
    "signatureRx" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "signatureRy" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "signatureS" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "memo" : "Air Drop"
}
curl -X POST -H "X-API-KEY:sra1aavfa" -H "X-API-SIG:dkkfinfasdf" -H "Content-Type:application/json" https://api.loopring.io/api/v2/transfer -d \
'{
    "exchangeId" : 1,
    "sender" : 1,
    "receiver" : 2,
    "token" : 1,
    "tokenF" : 1,
    "amount" : "1000000000000000000",
    "amountF" : "1000000000000000000",
    "nonce" : 1,
    "label" : 211,
    "signatureRx" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "signatureRy" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "signatureS" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
    "memo" : "Air Drop"
}'

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data string N Hash of submitted transfer "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : "13375450901292179417154974849571793069911517354720397125027633242680470075859"
}

Status code

Value Description
100000 Unknown error
102001 Exchange ID is incorrect
102021 Nonce is invalid
102022 Transfer sender is invalid
102023 Transfer receiver is invalid
102024 Fee token is unsupported
102025 Transfer token isnt consistent with fee token

results matching ""

    No results matching ""