swapTokenToUsdt

Contract method

function swapTokenToUsdt
        address _sender,
        address _tokenIn,
        uint256 _amountIn,
        uint256 _amountOutMin,
        uint24 _poolFee,
        uint256 _lockTime
    ) external returns (uint256 _amountOut);

POST https://api.xxx.com/v1/swapper/swap_token_to_usdt

Request Body

Name
Type
Description

lockTime*

Number

锁定时长

poolFee*

Number

流动池费率,固定3000

amountOut*

String

出金数量,须处理精度

amountIn*

String

入金数量,须处理精度

tokenIn*

String

入金token地址

to*

String

接收钱包地址

Good to know: This API method was auto-generated from an example Swagger file. You'll see that it's not editable – that's because the contents are synced to a URL! Any time the linked file changes, the documentation will change too.

最后更新于