🍍Transit Swap TRON

Transit Swap For TRON V2

波場的聚合交易API

查詢交易信息構建 Tron 交易合約數據

GET https://aggserver.transit.finance/v3/transit/swap

Query Parameters

Name
Type
Description

token0*

string

要出售的代幣合約地址

token1*

string

要購買的代幣合約地址

decimal0*

integer

要出售的代幣精度

decimal1*

integer

要購買的代幣精度

part*

integer

amountIn 的範圍: 1 - 100。建議10

amountIn*

integer

要出售的代幣數量

amountOutMin*

integer

最低收到的代幣數量

to*

string

目標代幣的收款地址

issuer*

string

交易的發送者

chain*

string

鏈標識,TRON

channel

String

"default"、"web"、"android"、"ios"、

"extension"

impact*

integer

滑點容限:0 - 10000。默認建議 50

{
    // Response
    "result": 0,
    "message": "success",
     "data": {
        "srcToken": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
        "dstToken": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
        "to": "",
        "amountIn": "10000000",
        "totalAmountOut": "647718",
        "totalAmountOutMin": "582946",
        "dexPath": [
            "JustSwap:100"
        ],
        "impact": "0.003001",
        "channel": "default",
        "dexs": [],
        "amounts": [
            {
                "exchange": "JustSwap",
                "amountOut": "647718",
                "icon_url": "https://tp-statics.tokenpocket.pro/logo/dapp/justswap.png"
            }
        ],
        "aggregator": "TFHc9qsQCiepyyUQynnVVrQwMxZ37Fi15N",
        "data": {
            "contract": "TFHc9qsQCiepyyUQynnVVrQwMxZ37Fi15N",
            "fun": "swap(address,address,address,address,uint256,uint256,string)",
            "options": {
                "callValue": "10000000",
                "feeLimit": 100000000
            },
            "parameter": [
                {
                    "type": "address",
                    "value": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"
                },
                {
                    "type": "address",
                    "value": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb"
                },
                {
                    "type": "address",
                    "value": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
                },
                {
                    "type": "address",
                    "value": ""
                },
                {
                    "type": "uint",
                    "value": "10000000"
                },
                {
                    "type": "uint",
                    "value": "582946"
                },
                {
                    "type": "string",
                    "value": "default"
                }
            ],
            "issuer": ""
        },
        "feeRate": 0.003,
        "fee": "30000",
        "usedAmountIn": "9970000"
    }
}

Last updated