<Get Swap Information List> Interface

Get the Transaction History of the corresponding address in separate pages

Request Address: /api/exchangeRecord/getTransData

API Address: https://api-swap.paths.finance

Request Method: POST

Request Parameter:

Field Name
Field Description
Type
Required or not
Notes

fromAddress

User address

string

Y

pageSize

Number in page

integer

Y

pageNo

Page

integer

Y

Output Parameter:

Field Name
Field Description
Type

txHash

Transaction hash

string

fromTokenAddress

Original token contract address

string

fromTokenSymbol

Original token symbol

string

fromTokenUrl

Original token logo address

string

toTokenAddress

Target contract address

string

toTokenSymbol

Target token symbol

string

toTokenUrl

Target token logo address

string

fromAmount

Original token amount, divided by decimal

decimal

toTokenAmount

Target token amount, divided by decimal

decimal

status

Current status: pending:Processing, success:Succeed, fail: failed,wait_kyc:wait for kyc, wait_refund: wait for return, refund_complete: Return tokens, wait_deposit_send_fail: Deposit coin failure, timeout: Coins were not deposit at the specified time, wait_for_information: Abnormal order

string

createTime

Create time

string

Input Example:

https://api-swap.paths.finance/api/exchangeRecord/getTransData
{
    "fromAddress":"0xF5a4170C83D9267B9344eb284D3fC31329e72843",
    "pageSize": 5,
    "pageNo": 1
}

Output Example:

{
    "data": {
        "total": 60,
        "pageNo": "1",
        "list": [
            {
                "fromTokenSymbol": "BNB",
                "fromAmount": "0.02",
                "fromTokenUrl": "https://images.swft.pro/inch1/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c.png",
                "toTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
                "toTokenAmount": "6.083530525158479",
                "toTokenSymbol": "USDT",
                "toTokenUrl": "https://images.swft.pro/inch1/0xdac17f958d2ee523a2206206994597c13d831ec7.png",
                "toTokenChain": "BSC",
                "createTime": "2024-01-09 17:14:32",
                "releaseStatus": false,
                "fromTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                "txHash": "0xb299ba2f7fb2c038244b76c227b70deaf8706ce88bec3732f6833ce92a457696",
                "fromTokenChain": "BSC",
                "status": "success", 
                "createTimeT": 1704791672000
            },
            {
                "fromTokenSymbol": "USDT",
                "fromAmount": "6",
                "fromTokenUrl": "https://images.swft.pro/inch1/0xdac17f958d2ee523a2206206994597c13d831ec7.png",
                "toTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                "toTokenAmount": "0.02008596243944786",
                "toTokenSymbol": "BNB",
                "toTokenUrl": "https://images.swft.pro/inch1/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c.png",
                "toTokenChain": "BSC",
                "createTime": "2024-01-08 14:40:55",
                "releaseStatus": false,
                "fromTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
                "txHash": "0x8c26c8ffed330992851637f29378ecfad98b6b217653667f6704c31642154965",
                "fromTokenChain": "BSC",
                "status": "success",
                "createTimeT": 1704696055000
            },
            {
                "fromTokenSymbol": "USDT",
                "fromAmount": "20",
                "fromTokenUrl": "https://images.swft.pro/inch1/0xdac17f958d2ee523a2206206994597c13d831ec7.png",
                "toTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                "toTokenAmount": "0.06183017011526443",
                "toTokenSymbol": "BNB",
                "toTokenUrl": "https://images.swft.pro/inch1/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c.png",
                "toTokenChain": "BSC",
                "createTime": "2024-01-04 18:01:18",
                "releaseStatus": false,
                "fromTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
                "txHash": "0x8ac11d63a72cb5ca365f2c3da2e1e5eed32254a097578d50339363ca7bdaf251",
                "fromTokenChain": "BSC",
                "status": "success",
                "createTimeT": 1704362478000
            },
            {
                "fromTokenSymbol": "USDT",
                "fromAmount": "6",
                "fromTokenUrl": "https://images.swft.pro/inch1/0xdac17f958d2ee523a2206206994597c13d831ec7.png",
                "toTokenAddress": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                "toTokenAmount": "0.01889132027640822",
                "toTokenSymbol": "BNB",
                "toTokenUrl": "https://images.swft.pro/inch1/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c.png",
                "toTokenChain": "BSC",
                "createTime": "2024-01-03 15:54:48",
                "releaseStatus": false,
                "fromTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
                "txHash": "0x19b9b48fd847b4f97f403a39994231cb7706a161e4d9d349fc5aaa00642f6c3c",
                "fromTokenChain": "BSC",
                "status": "success",
                "createTimeT": 1704268488000
            },
            {
                "fromTokenSymbol": "USDT",
                "fromAmount": "15",
                "fromTokenUrl": "https://images.swft.pro/inch1/0xdac17f958d2ee523a2206206994597c13d831ec7.png",
                "toTokenAddress": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
                "toTokenAmount": "14.993217",
                "toTokenSymbol": "USDT",
                "toTokenUrl": "https://swap.swftcoin.com/swft-v3/images/coins/USDT(MATIC).png",
                "toTokenChain": "POLYGON",
                "createTime": "2023-12-27 17:03:32",
                "releaseStatus": false,
                "fromTokenAddress": "0x55d398326f99059ff775485246999027b3197955",
                "txHash": "0x12bbfa3351545edd9c54db0beef47f318d6a6dc52bfe800d966b673cc97afd94",
                "fromTokenChain": "BSC",
                "status": "success",
                "createTimeT": 1703667812000
            }
        ]
    },
    "resCode": 100,
    "resMsg": "success"
}

Postman Call Example

Last updated