/history
-
GET | POST /history
{ ownerAddress, chainId }
→[{ type: “withdraw”, }, { type: “deposit” }]
POST Data:
{
"chainId" : 1,
"ownerAddress" : "0x1234....1234",
"contractType" : "payment"
}Where:
- chainId - chainId from previous step
- ownerAddress - wallet owner address (not a smart contract address)
- contractType - check contract types page for more information
Please notice you will receive output transactions as well
Response:
[
{
"type" : "deposit",
"index": 0,
"amount": 5,
"tokenAddress": "0x1233....12333",
"token" : "USDT",
"walletAddress": "0x2333....5233",
"chainId": 1,
"txid": "0x12344.....12234/0"
},
{
"type" : "withdraw",
"amount": 5,
"tokenAddress": "0x0000....0000",
"token": "ETH",
"to" : "0x1234...1234",
"chainId": 1,
"txid": "0x12344.....12235"
},
...
]