Skip to content

Latest commit

 

History

History
57 lines (29 loc) · 4.73 KB

File metadata and controls

57 lines (29 loc) · 4.73 KB
description
Get history for deposit, transfer and/or withdraw

Get Transactions

EndPoint

GET /api/v3/user/transactions

Header

FieldDescriptionExampleTypeRequired
X-API-KEYApiKey"HlkcGxbqBeaF76j4rvPaOayfPwnkQ6B6DQ6THZWbvrGxzEdulXQvOKLrRWZLnN"Y

Request

FieldDescriptionExampleTypeRequired
accountIdAccount ID10010integerN
start(Optional) Start time in milliseconds
Default : 0L
1578558098000integerN
end(Optional) End time in milliseconds
Default : 0L
1578558098000integerN
limit(Optional) Number of records to return, max is 50 20integerN
tokenSymbol(Optional) Token to filter. If you want to return deposit records for all tokens, omit this parameter"LRC"stringN
offset(Optional) Number of records to skip
Default : 0L
1integerN
typestypes, in "transfer,deposit,offchain_withdrawal,change_password", (split by ,)"transfer,deposit"stringN
hashesThe hashes (split by ,) of the transactions, normally its L2 tx hash, except the deposit which uses L1 tx hash."0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085"stringN

Response

List[Transaction]

Model

Transaction

FieldDescriptionExampleTypeRequired
idUnique id1integerY
hashL2 hash"0x9d114267e8b261457d567093c13cf3deea5f14c9235be26c6fa833dba12a9632"stringY
txTypeUser transaction type

"DEPOSIT"

"ONCHAIN_WITHDRAWAL"

"TRANSFER"

"CHANGE_PWD"

"CREATE_ACCOUNT"

"OFFCHAIN_WITHDRAWAL"

"AMM_JOIN"

"AMM_EXIT"

stringY
symbolToken symbol"LRC"stringY
amountAmount requested by the user"100000000000
0000000"
stringY
txHshLayer 1 hash"0x9d114267e8b261457d567093c13cf3deea5f14c9235be26c6fa833dba12a9632"stringN
senderAddresssender address"0x0306b9d5c9Ed358FC7b77780bACD15398D242f26"
receiverReceiver account id10110integerN
receiverAddressThe transfer receiver's address"0x0306b9d5c9Ed358FC7b77780bACD15398D242f26"stringN
feeTokenSymbolFee token symbol"ETH"stringY
feeAmountFee amount in wei"100000000000
0000"
stringY
statusCurrent status
Allowable : ['processing', 'processed', 'received', 'failed']
"processing"stringY
progressProgress"100%"stringY
timestampCreate time1578572292000integerY
updatedAtUpdate time1578572292000integerY
memomemo"Air Drop"stringN
withdrawalInfowithdraw info/integerY
storageInfostorage info
can link to explorer.loopring.io

withdrawInfo

Field Description Example
recipient receiver address
fastStatus
distributeHash Layer 1 tx hash

storageInfo

Field Description Example
accountId account ID 10110
tokenId token ID 0
storageId storageId 1