TRC10转账

简要描述

  • TRC10转账接口

请求URL

  • /api/trc10/send?amount=1&address=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny&key=41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b&tokenid=1002992

请求方式

  • GET

参数

参数名
必选
类型
说明

amount

float

金额

address

string

收钱地址

key

string

钱包私钥

tokenid

string

目标代币标识符,默认传 1002992

返回示例

{
    "code": 0,
    "msg": "class org.tron.core.exception.ContractValidateException : No owner account!",
    "data": null,
    "time": 1652932448
}


{
    "code": 1,
    "data": {
        "result": true,
        "txid": "f801555a4ccf6128e31fa96b78c0acf5936df2177d36ea2850033f68bcdf639e",
        "visible": false,
        "txID": "f801555a4ccf6128e31fa96b78c0acf5936df2177d36ea2850033f68bcdf639e",
        "raw_data": {
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "amount": 1,
                            "asset_name": "31303032393932",
                            "owner_address": "4144967f55976c06c4fb55b2e310843c25105ba78d",
                            "to_address": "41f5fbe5e8725957174014dca1dc4fed54e970a2f8"
                        },
                        "type_url": "type.googleapis.com/protocol.TransferAssetContract"
                    },
                    "type": "TransferAssetContract"
                }
            ],
            "ref_block_bytes": "72d6",
            "ref_block_hash": "8dfdfca640ecdaff",
            "expiration": 1652932035000,
            "timestamp": 1652931977809
        },
        "raw_data_hex": "0a0272d622088dfdfca640ecdaff40b883b5d38d305a730802126f0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e736665724173736574436f6e747261637412390a073130303239393212154144967f55976c06c4fb55b2e310843c25105ba78d1a1541f5fbe5e8725957174014dca1dc4fed54e970a2f8200170d1c4b1d38d30",
        "signature": [
            "3b7c9e62adf92e32cf5b06331880606eabdd81f56ce1993b3005cab832000925ec5360fb24927dacf40575b6d1eebcaa4b326047fde0093fbb9555a04b90965c00"
        ]
    },
    "msg": "转账成功",
    "time": 1652931977
}

返回参数说明

参数名
类型
说明

txID

string

交易哈希

Last updated