iexbase / tron-api-python

A Python API for interacting with Tron (TRX)
https://tronapi-for-python.readthedocs.io
MIT License
166 stars 84 forks source link

No "{'result': True" in send_token TRC10 #92

Open Vuongedx opened 3 years ago

Vuongedx commented 3 years ago

image Please check my script python When I try to send TRX to another account, it returns: "{'result': True, 'txid': '8ac64caa9306176efd29c90e27e684cc39f314bc669e96630d8cc300f3d14fe0', 'transaction': {'visible': False, 'txID': '8ac64caa9306176efd29c90e27e684cc39f314bc669e96630d8cc300f3d14fe0', 'raw_data': {'contract': [{'parameter': {'value': {'amount': 1000000, 'owner_address': '417cd8bf917e5c951224f3b118ab5429bafd419d0c', 'to_address': '417c60c9a41fa591909dd027bfbd7bf62b3ce18bfb'}, 'type................." But when I try to send a token TRC10, it only returns like picture, and have no result: True "{'visible': False, 'txID': '4531bba7633b1a43adcff1c33b53791610e4204f83b7f45be585a4f6e660ad16', 'raw_data': {'contract': [{'parameter': {'value': {'amount': 100, 'asset_name': '31303034303331', 'owner_address': '417cd8bf917e5c951224f3b118ab5429bafd419d0c', 'to_address': '417c60c9a41fa591909dd027bfbd7bf62b3ce18bfb'}, 'type_url': 'type.googleapis.com/protocol.TransferAssetContract'}, 'type': 'TransferAssetContract'}], 'ref_block_bytes': '0b85', 'ref_block_hash': '585b7d3cba63e3be', 'expiration': 1624458666000, 'timestamp': 1624458610293}, 'raw_data_hex': '0a020b852208585b7d3cba63e3be4090c0a0caa32f5a730802126f0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e736665724173736574436f6e747261637412390a07313030343033311215417cd8bf917e5c951224f3b118ab5429bafd419d0c1a15417c60c9a41fa591909dd027bfbd7bf62b3ce18bfb206470f58c9dcaa32f'} "