Position History
get swap details
GET:
Copy
Authorization information
There is currently no authorization information disclosed in the API.
Request
Name | Type | Required | Description |
pairId | int | true | id of the position |
type | int | true | operate type 1: swap token to nft 2: swap nft to token 3: init liquidity 4: increase liquidity 5: decrease liquidity 6: remove liquidity 10: claim earnings |
page | int | false | pagination of the list, default is 1 |
Response
Name | Type | Description | Example |
code | string | result code | 200 |
message | string | the error message | Invalid key |
success | boolean | whether the request success | true |
data | object | | |
- totalCount | int | total result | 100 |
- pipeline | array | | |
- type | int | operate type | 1 |
- txHash | string | tx hash of the transaction | 0xa31c6040f576e56ed312fcb920afc0e1c0f1ec114eccc3c83a246fe0ba0c51fc |
- fromAddress | string | from address of the transaction | 0xf9757e06a705afa7ceeacc619d39638effd758cd |
- toAddress | string | to address of the transaction | 0x62a49f0270a849730cf89c502992f91cc68dfee5 |
- networkFee | string | transaction fee(gwei) | 50000000000000000 |
- detail | json | detail of the operate type | {"tokenIdList": ["4"], "virtualCount": 0} |
- time | date | time of the transaction | |
Last updated