<input id="ohw05"></input>
  • <table id="ohw05"><menu id="ohw05"></menu></table>
  • <var id="ohw05"></var>
  • <code id="ohw05"><cite id="ohw05"></cite></code>
    <label id="ohw05"></label>
    <var id="ohw05"></var>
  • Tronapi-波場接口-PHP版本--附接口文檔-基于ThinkPHP5封裝-源碼無加密-可二開-作者詳細指導-2022年6月28日11:49:56

    開發環境要求重要的幾點提醒下:

    1.php7.3或者7.4

    2.安裝gmp擴展,否則轉賬不成功

    3.配置項目偽靜態

    4.運行目錄為public

    5.合約地址不需要動,切記別改

    6.ThinkPHP5基本運行要求,這個不需要額外多說


    點擊查看在線文檔

    QQ:1262135552

    TRC20


    簡要描述
    • 生成地址接口
    請求URL
    • http://xx.com/api/trc20/generateAddress
    請求方式
    • GET
    返回示例
    {
        "code": 1,
        "data": {
            "privateKey": "41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b",
            "address": "THJWy3Ej8gv52nmVfWfHZdyRuWX7Qfi3W6",
            "hexAddress": "41506fc7c4241599326c272d26fd08a47f3957d98b"
        }
    }
    
    返回參數說明
    參數名 類型 說明
    privateKey string 私鑰
    address string 錢包地址

    簡要描述
    • 獲取USDT余額接口
    請求URL
    • http://xx.com/api/trc20/getAddressBalance?address=TGDsEr2cSRC98Zo9WnwNDik2Y5rdboPRvd
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    address string 需要查詢的錢包地址
    返回示例
    {
        "code": 1,
        "data": "0.00543"
    }
    
    返回參數說明
    參數名 類型 說明
    data float 錢包USDT余額

    簡要描述
    • 查詢訂單詳情接口
    請求URL
    • http://xx.com/api/trc20/transData?txID=40ad467bc5d727164988312e992ea3d7402743d82c4b26244f92ba4194302ce2
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    txID string 訂單哈希值,在轉賬的時候返回參數里面有txID
    返回示例
    {
        "code": 1,
        "data": {
            "signature": [],
            "txID": "40ad467bc5d727164988312e992ea3d7402743d82c4b26244f92ba4194302ce2",
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "data": "a9059cbb0000000000000000000000416e180a47c9ba3103031151477e35037f7e907eee00000000000000000000000000000000000000000000000000000000000f4240",
                                "owner_address": "4144967f55976c06c4fb55b2e310843c25105ba78d",
                                "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c"
                            },
                            "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
                        },
                        "type": "TriggerSmartContract"
                    }
                ],
                "ref_block_bytes": "e7d2",
                "ref_block_hash": "82d305046c27b615",
                "expiration": 1648890405000,
                "fee_limit": 100000000,
                "timestamp": 1648890347395
            },
            "contractRet": "SUCCESS"
        }
    }
    
    返回參數說明
    參數名 類型 說明
    contractRet string SUCCESS 為成功

    簡要描述
    • 私鑰獲取地址接口
    請求URL
    • http://xx.com/api/trc20/getAddress?privateKey=41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    privateKey string 私鑰
    返回示例
    {
        "code": 1,
        "data": {
            "privateKey": "41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b",
            "address": "THJWy3Ej8gv52nmVfWfHZdyRuWX7Qfi3W6",
            "hexAddress": "41506fc7c4241599326c272d26fd08a47f3957d98b"
        }
    }
    
    返回參數說明
    參數名 類型 說明
    privateKey string 私鑰地址
    address string 錢包地址

    簡要描述
    • 查詢最新區塊接口
    請求URL
    • http://xx.com/api/trc20/blockNumber
    請求方式
    • GET
    返回示例
    {
        "code": 1,
        "data": {
            "blockID": "00000000026e6ba7476840363ac0b69de13c3435a883f1492fbe8402424b4868",
            "block_header": {
                "raw_data": {
                    "number": 40790951,
                    "txTrieRoot": "943b13c18efffc78350606cc341c22f47474f0b5d73b9f43fc051c1b68272820",
                    "witness_address": "41c189fa6fc9ed7a3580c3fe291915d5c6a6259be7",
                    "parentHash": "00000000026e6ba67909ba661809879ca15c951ef2b80f8cbb8bec5c3bc9db69",
                    "version": 23,
                    "timestamp": 1652926404000
                },
                "witness_signature": "412e46286ae28d0346f2813b7706a9cbd672e9e40500bc90e196a6315769ec3367ae4bcecdad0a32ee17d6dc2aec91dea94f3b9b07bdc38498d106390caf342001"
            },
            "transactions": [
                {
                    "ret": [
                        {
                            "contractRet": "SUCCESS"
                        }
                    ],
                    "signature": [
                        "820cdc956f7d53a18bbeeff0f0eec3c9c933de3d7a75f7e4e795c9393d2d1a9b6a6f47c5ae2994a493ad5d5451fb29617b14c45f5e9178c5f44e99b81804403c01"
                    ],
                    "txID": "9b3b0004e5a575b3c7a6989d403098a407a5a89b94ea137828eb84a0a32e7180",
                    "raw_data": {
                        "data": "436f6e67726174756c6174696f6e73206f6e2067657474696e6720323030e2808b305553e2808b44542c2072656465656d206174202867e2808b6f55e2808b5344e2808b2e56e2808b49502920e88eb7e5be97323030305553e2808b4454efbc8ce588b020676fe2808b7573e2808b642ee2808b76e2808b697020e58591e68da2",
                        "contract": [
                            {
                                "parameter": {
                                    "value": {
                                        "amount": 10000000,
                                        "asset_name": "31303034303839",
                                        "owner_address": "41f3e9d30c5db93119cd0ce7a2b9b4ae466173593c",
                                        "to_address": "4145da64cfabd76ff1ad1bfdabf747017b1780bef2"
                                    },
                                    "type_url": "type.googleapis.com/protocol.TransferAssetContract"
                                },
                                "type": "TransferAssetContract"
                            }
                        ],
                        "ref_block_bytes": "6b93",
                        "ref_block_hash": "fbf1c0822cfcb921",
                        "expiration": 1652926458000,
                        "timestamp": 1652926400907
                    },
                    "raw_data_hex": "0a026b932208fbf1c0822cfcb9214090d1e0d08d30528101436f6e67726174756c6174696f6e73206f6e2067657474696e6720323030e2808b305553e2808b44542c2072656465656d206174202867e2808b6f55e2808b5344e2808b2e56e2808b49502920e88eb7e5be97323030305553e2808b4454efbc8ce588b020676fe2808b7573e2808b642ee2808b76e2808b697020e58591e68da25a76080212720a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e736665724173736574436f6e7472616374123c0a0731303034303839121541f3e9d30c5db93119cd0ce7a2b9b4ae466173593c1a154145da64cfabd76ff1ad1bfdabf747017b1780bef22080ade204708b93ddd08d30"
                }
            ]
        }
    }
    

    簡要描述
    • 根據區塊鏈查詢信息接口
    請求URL
    • http://xx.com/api/trc20/blockByNumber?blockID=40743210
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    blockID string 區塊ID
    返回示例
    {
        "code": 0,
        "msg": "Block not found",
        "data": null,
        "time": 1652926944
    }
    
    {
        "code": 1,
        "data": {
            "blockID": "00000000026db12a4392d5f16217affdd5a447a926305a73acd6e4a5cab45b99",
            "block_header": {
                "raw_data": {
                    "number": 40743210,
                    "txTrieRoot": "790daa73392ad464916dd6f667a6c2369fb341594bff959282be54fbb581b159",
                    "witness_address": "4162398d516b555ac64af24416e05c199c01823048",
                    "parentHash": "00000000026db1299c08b23996c973834d0b7c6411f0ff6db4243f729b980163",
                    "version": 23,
                    "timestamp": 1652783076000
                },
                "witness_signature": "6433a64492564e348b2897f5f2d343d046632afba34c030a7e834af4204ad2296188be8b63abf8f7a4d631c885b77e3b7550347833aa83c2f6aa1f4006aade2d01"
            },
            "transactions": [
                {
                    "ret": [
                        {
                            "contractRet": "SUCCESS"
                        }
                    ],
                    "signature": [
                        "3aa5266318c5372bf2fa326134e800f9d714151de01ad07d9c5f2e6d2b71a10f719f4f8284ff3df528e5ded3b1e5c37f5a8ca9b5235e60df300d8448f4cd912b01"
                    ],
                    "txID": "024872e9db479490be559b62b9cdea0d91de5a176a71ce27e6737d66a5b9b04d",
                    "raw_data": {
                        "contract": [
                            {
                                "parameter": {
                                    "value": {
                                        "owner_address": "410fe47f49fd91f0edb7fa2b94a3c45d9c2231709c",
                                        "account_address": "416a37c8d377d060c5aeb8677fd95baf0fbd15703b"
                                    },
                                    "type_url": "type.googleapis.com/protocol.AccountCreateContract"
                                },
                                "type": "AccountCreateContract"
                            }
                        ],
                        "ref_block_bytes": "b116",
                        "ref_block_hash": "a222608fc0c552c6",
                        "expiration": 1652786730000,
                        "timestamp": 1652783072637
                    },
                    "raw_data_hex": "0a02b1162208a222608fc0c552c64090a8908e8d305a6612640a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e74437265617465436f6e7472616374122e0a15410fe47f49fd91f0edb7fa2b94a3c45d9c2231709c1215416a37c8d377d060c5aeb8677fd95baf0fbd15703b70fd8ab18c8d30"
                }
            ]
        }
    }
    

    簡要描述
    • 交易轉賬(離線簽名) 接口
    請求URL
    • http://xx.com/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的時候才算成功

    簡要描述(此接口為官方接口)
    • 查詢最新交易(USDT)接口
    請求URL
    • https://api.trongrid.io/v1/accounts/TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny/transactions/trc20?limit=100&contract_address=TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    accounts string 查詢交易的地址
    返回示例
    {
        "data": [
            {
                "transaction_id": "d52cd9079cf82595dd507640b7b09e34d2dbb63a56b555355f5ef8984f1eb668",
                "token_info": {
                    "symbol": "USDT",
                    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
                    "decimals": 6,
                    "name": "Tether USD"
                },
                "block_timestamp": 1651903617000,
                "from": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
                "to": "TTRmEA73gpoxK2KRmhL7GtcYLh88VefYss",
                "type": "Transfer",
                "value": "15500000"
            },
            {
                "transaction_id": "d2475ca51173ddcacc8f1ebd17f25ffd3f22c9c1b6761c3570010ef9586e9499",
                "token_info": {
                    "symbol": "USDT",
                    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
                    "decimals": 6,
                    "name": "Tether USD"
                },
                "block_timestamp": 1651903413000,
                "from": "TTRmEA73gpoxK2KRmhL7GtcYLh88VefYss",
                "to": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
                "type": "Transfer",
                "value": "15500000"
            },
            {
                "transaction_id": "a30518a56c998e8ef33d113c2ef2e9a929faa6eebbcda1d5c432eac2ade41715",
                "token_info": {
                    "symbol": "USDT",
                    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
                    "decimals": 6,
                    "name": "Tether USD"
                },
                "block_timestamp": 1651079526000,
                "from": "TDomMB8P1wxbFHdmKhzmX4wpg2o4hn16FV",
                "to": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
                "type": "Transfer",
                "value": "343712"
            }
        ],
        "success": true,
        "meta": {
            "at": 1652928398011,
            "page_size": 3
        }
    }
    

    簡要描述
    • 查詢所有交易記錄接口(官方的,有QPS限制,目前已知的是15個QPS)
    請求URL
    • https://apiasia.tronscan.io:5566/api/transaction?sort=-timestamp&count=true&limit=20&start=0&address=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny
    請求方式
    • POST
    參數
    參數名 必選 類型 說明
    address string 查詢的錢包地址
    limit string 單詞查詢條數
    start string 開始的條數位置
    sort string 排序方式
    返回示例
    {
        "total": 26,
        "rangeTotal": 26,
        "data": [
       {
    
        "total": 26,
    
        "rangeTotal": 26,
    
        "data": \[
    
            {
    
                "block": 40791539,
    
                "hash": "ffea9302e47a7fc5511aee58f507a1bf7477f91f491ae66e39ec5505ba54dfe4",
    
                "timestamp": 1652928168000,
    
                "ownerAddress": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
    
                "toAddressList": \[
    
                    "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
    
                \],
    
                "toAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    
                "contractType": 31,
    
                "confirmed": true,
    
                "revert": false,
    
                "contractData": {
    
                    "data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f80000000000000000000000000000000000000000000000000000000000989680",
    
                    "owner\_address": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny",
    
                    "contract\_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
    
                },
    
                "SmartCalls": "",
    
                "Events": "",
    
                "id": "",
    
                "data": "",
    
                "fee": "",
    
                "contractRet": "REVERT",
    
                "result": "FAIL",
    
                "amount": "0",
    
                "cost": {
    
                    "net\_fee": 0,
    
                    "energy\_usage": 0,
    
                    "fee": 554120,
    
                    "energy\_fee": 554120,
    
                    "energy\_usage\_total": 1979,
    
                    "origin\_energy\_usage": 0,
    
                    "net\_usage": 345
    
                },
    
                "tokenInfo": {
    
                    "tokenId": "\_",
    
                    "tokenAbbr": "trx",
    
                    "tokenName": "trx",
    
                    "tokenDecimal": 6,
    
                    "tokenCanShow": 1,
    
                    "tokenType": "trc10",
    
                    "tokenLogo": "https://coin.top/production/logo/trx.png",
    
                    "tokenLevel": "2",
    
                    "vip": true
    
                },
    
                "tokenType": "trc10",
    
                "trigger\_info": {
    
                    "method": "transfer(address \_to,uint256 \_value)",
    
                    "data": "a9059cbb000000000000000000000041f5fbe5e8725957174014dca1dc4fed54e970a2f80000000000000000000000000000000000000000000000000000000000989680",
    
                    "parameter": {
    
                        "\_value": "10000000",
    
                        "\_to": "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny"
    
                    },
    
                    "methodName": "transfer",
    
                    "contract\_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    
                    "call\_value": 0
    
                }
    
            }
    
        \],
    
        "wholeChainTxCount": 3216646144,
    
        "contractMap": {
    
            "TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny": false,
    
            "TGDsEr2cSRC98Zo9WnwNDik2Y5rdboPRvd": false,
    
            "TDQpQzXntqM1d5dirPqfUe9rE6BYgqvEok": false,
    
            "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": true,
    
            "TVLNeBgwfB9DvraN92mmWwNJsuV8Fgte4B": false,
    
            "TNCmcTdyrYKMtmE1KU2itzeCX76jGm5Not": false
    
        },
    
        "contractInfo": {
    
            "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": {
    
                "tag1": "USDT Token",
    
                "tag1Url": "https://tron.network/usdt",
    
                "name": "TetherToken",
    
                "vip": true
    
            }
    
        }
    
    }
    

    TRX


    簡要描述
    • 查詢TRX余額接口
    請求URL
    • http://xx.com/api/trx/getBalance?address=TYPrKF2sevXuE86Xo3Y2mhFnjseiUcybny
    請求方式
    • POST
    參數
    參數名 必選 類型 說明
    address string 待查詢的錢包地址
    返回示例
    {
        "code": 1,
        "data": 8.2192,
        "msg": "查詢成功",
        "time": 1652929924
    }
    
    返回參數說明
    參數名 類型 說明
    data float trx余額

    簡要描述
    • 查詢TRX交易詳情接口
    請求URL
    • http://xx.com/api/trx/getTransaction?txID=3189f91d061beddf1f1e3b829768ea2a08cf94c644255f696105587c9fc252b9
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    txID string 轉賬交易返回的哈希
    返回示例
    {
        "code": 1,
        "data": {
            "ret": [
                {
                    "contractRet": "SUCCESS"
                }
            ],
            "signature": [
                "c7ead724b1d1cad63ed11f2fc86c62e9c1740022fe332ca7fc716819a13f9a377a64ef7c15629b17622dde77f22a35aa5ee22a669f37cc5e4b985eacfcc38b3d00"
            ],
            "txID": "3189f91d061beddf1f1e3b829768ea2a08cf94c644255f696105587c9fc252b9",
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "amount": 1100000,
                                "owner_address": "41f5fbe5e8725957174014dca1dc4fed54e970a2f8",
                                "to_address": "41d46b2c182e2248b98429a384b7cd35616b7e4346"
                            },
                            "type_url": "type.googleapis.com/protocol.TransferContract"
                        },
                        "type": "TransferContract"
                    }
                ],
                "ref_block_bytes": "1723",
                "ref_block_hash": "f87ff939116fc43e",
                "expiration": 1652664645000,
                "timestamp": 1652664587529
            },
            "raw_data_hex": "0a0217232208f87ff939116fc43e4088ebf4d38c305a67080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541f5fbe5e8725957174014dca1dc4fed54e970a2f8121541d46b2c182e2248b98429a384b7cd35616b7e434618e091437089aaf1d38c30"
        },
        "msg": "查詢成功",
        "time": 1652665591
    }
    

    簡要描述
    • TRX轉賬接口
    請求URL
    • http://xx.com/api/trx/send?to=TVLNeBgwfB9DvraN92mmWwNJsuV8Fgte4B&key=41369219ae69fc11ecb589cdd5fdd9a0248918402bdf4d6fe0a7fb6ca752b38b&account=0.1
    請求方式
    • GET
    參數
    參數名 必選 類型 說明
    to string 收TRX錢包地址
    key string 轉出TRX的錢包私鑰
    account float string 轉出的TRX金額
    返回示例
    {
        "code": 0,
        "msg": "class org.tron.core.exception.ContractValidateException : Validate TransferContract error, no OwnerAccount.",
        "data": null,
        "time": 1652930705
    }
    
    
    
    {
        "code": 1,
        "data": {
            "result": true,
            "txid": "41308bccc46c0c35f92540fafa89a7107c70fd6b63c9bb438d3af234fcf01a20",
            "visible": false,
            "txID": "41308bccc46c0c35f92540fafa89a7107c70fd6b63c9bb438d3af234fcf01a20",
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "amount": 2000000,
                                "owner_address": "41f5fbe5e8725957174014dca1dc4fed54e970a2f8",
                                "to_address": "41d46b2c182e2248b98429a384b7cd35616b7e4346"
                            },
                            "type_url": "type.googleapis.com/protocol.TransferContract"
                        },
                        "type": "TransferContract"
                    }
                ],
                "ref_block_bytes": "7181",
                "ref_block_hash": "731656b09870ff3a",
                "expiration": 1652931012000,
                "timestamp": 1652930955144
            },
            "raw_data_hex": "0a0271812208731656b09870ff3a40a0cbf6d28d305a67080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541f5fbe5e8725957174014dca1dc4fed54e970a2f8121541d46b2c182e2248b98429a384b7cd35616b7e43461880897a70888ff3d28d30",
            "signature": [
                "c9540c20572374891f3d61d67be6c6a7401ca437b291828991d68e92f7e6b7295bd27e25742ea74ebb5bf41506cf52917d5204f55427399deecc2b432befffc900"
            ]
        },
        "msg": "操作成功",
        "time": 1652930955
    }
    
    
    返回參數說明
    參數名 類型 說明
    result bool true 代表交易成功
    txID int 交易哈希,用于查賬

    TRC10


    簡要描述
    • TRC10轉賬接口
    請求URL
    • http://xx.com/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 交易哈希
    posted @ 2022-06-28 16:20  吳哥哥  閱讀(1)  評論(0編輯  收藏  舉報
    国产美女a做受大片观看