🖤USDT转账

简要描述

  • 交易转账(离线签名) 接口

请求URL

  • /api/trc20/transfer?key=41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b&toaddress=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny&amount=10

请求方式

  • GET

参数

参数名
必选
类型
说明

key

string

转账钱包私钥

toaddress

string

收款钱包地址

amount

string

转账U金额

返回示例

{
    "code": 0,
    "msg": "Transfer Fail",
    "data": null,
    "time": 1652927917
}


{
    "code": 1,
    "data": {
        "signature": [],
        "txID": "ffea9302e47a7fc5511aee58f507a1bf7477f91f491ae66e39ec5505ba54dfe4",
        "raw_data": {
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f80000000000000000000000000000000000000000000000000000000000989680",
                            "owner_address": "41f5fbe5e8725957174014dca1dc4fed54e970a2f8",
                            "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c"
                        },
                        "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
                    },
                    "type": "TriggerSmartContract"
                }
            ],
            "ref_block_bytes": "6ddf",
            "ref_block_hash": "bfead22de965d544",
            "expiration": 1652928222000,
            "fee_limit": 100000000,
            "timestamp": 1652928165332
        },
        "contractRet": "PACKING"
    }
}

返回参数说明

参数名
类型
说明

txID

string

交易哈希,用于异步查询订单交易状态,因为有的交易同步不一定及时到账,所以有必要异步在进行一次交易结果确认

contractRet

string

这个参数只有为SUCCESS的时候才算成功

Last updated