Get user transfer list

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/transfers

功能

Get user transfer list.

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID 1
start integer Start time in milliseconds
默认值 : 0L
1578558098000
end integer End time in milliseconds
默认值 : 0L
1578558098000
status string Comma separated status values
取值范围 : ['processing', 'processed', 'received', 'failed']
"processing,processed"
limit integer Number of records to return 50
tokenSymbol string Token to filter. If you want to return deposit records for all tokens, omit this parameter "LRC"
offset integer Number of records to skip
默认值 : 0L
1
transferTypes string request.getUserTxs.transferTypes "transfer, transfer_red"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/transfers?accountId=1&start=1578558098000&end=1578558098000&status=processing,processed&limit=50&tokenSymbol=LRC&offset=1&transferTypes=transfer, transfer_red 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/transfers\?accountId\=1\&start\=1578558098000\&end\=1578558098000\&status\=processing,processed\&limit\=50\&tokenSymbol\=LRC\&offset\=1\&transferTypes\=transfer, transfer_red

响应字段

字段 类型 必须 说明 举例
totalNum integer Total number of records found 1
transactions List[TransferData] User's transfer list /

响应示例

{
    "totalNum" : 1,
    "transactions" : [
        {
            "id" : 1,
            "hash" : "0x9d114267e8b261457d567093c13cf3deea5f14c9235be26c6fa833dba12a9632",
            "txType" : "transfer",
            "symbol" : "LRC",
            "amount" : "1000000000000000000",
            "senderAddress" : "0x0306b9d5c9Ed358FC7b77780bACD15398D242f26",
            "receiver" : 1,
            "receiverAddress" : "0x0306b9d5c9Ed358FC7b77780bACD15398D242f26",
            "feeTokenSymbol" : "ETH",
            "feeAmount" : "1000000000000000",
            "status" : "processing",
            "progress" : "100%",
            "timestamp" : 1578572292000,
            "updatedAt" : 1578572292000,
            "memo" : "Air Drop"
        }
    ]
}

状态码

状态码 描述
100000 Unknown error
107001 User ID cannot be empty
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

模型


TransferData

字段 类型 必须 说明 举例
id integer Unique ID 1
hash string hash "0x9d114267e8b261457d
567093c13cf3deea5f14
c9235be26c6fa833dba1
2a9632"
txType string User transaction type "transfer"
symbol string Token symbol "LRC"
amount string Amount requested by the user "1000000000000000000"
senderAddress string field.TxData.senderAddress "0x0306b9d5c9Ed358FC7
b77780bACD15398D242f
26"
receiver integer Receiver ID 1
receiverAddress string The transfer receiver's address "0x0306b9d5c9Ed358FC7
b77780bACD15398D242f
26"
feeTokenSymbol string field.TxData.feeTokenSymbol "ETH"
feeAmount string Fee amount in wei "1000000000000000"
status string Current status
取值范围 : ['processing', 'processed', 'received', 'failed']
"processing"
progress string Progress "100%"
timestamp integer Create time 1578572292000
updatedAt integer Update time 1578572292000
memo string field.TxData.memo "Air Drop"

results matching ""

    No results matching ""