提交内部转账

流量控制: 5 每 秒

摘要


HTTP 方法

POST

访问路径

/api/v2/transfer

功能

提交内部转账

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"
X-API-SIG string 签名信息 "138345244293157165270722452892
010987433674489288289416943333
00773464291931668,192524381644
249809013234960675797674572982
626096331826549685003177960107
94338,129650216991857917204601
962488677667247381368354153200
8712357317204831986826"

请求参数

字段 类型 必须 说明 举例
exchangeId integer 交易所ID 1
sender integer 转账者用户ID 1
receiver integer 接收者用户ID 2
token integer 转账的token ID 1
tokenF integer 转账指定的收费token ID,要求必须和转账token ID一致。 1
amount string 转账数量 "1000000000000000000"
amountF string 转账的收费数量 "1000000000000000000"
nonce integer 路印交易所的链下请求随机数 1
label integer 转账标签,用来标示转账属性或者来源等, 参与转账请求签名, 取值范围0~65535 211
signatureRx string 转账签名结果Rx部分 "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
signatureRy string 转账签名结果Ry部分 "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
signatureS string 转账签名结果S部分 "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
memo string 转账备注 "Air Drop"

请求示例

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"
}'

响应字段

字段 类型 必须 说明 举例
resultInfo ResultInfo API返回信息 /
data string 提交的转账的hash "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"

响应示例

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

状态码

状态码 描述
100000 未知错误
102001 交易所ID不正确
102021 Nonce不合法
102022 转账者账户ID不合法
102023 接收者账户ID不合法
102024 不支持的转账收费token
102025 转账的token和费用token不匹配

results matching ""

    No results matching ""