tron-api-python
tron-api-python copied to clipboard
A Python API for interacting with Tron (TRX)
example : string public message; I tried to use "trigger_smart_contract" to call "message", but it cost energy. what is the correct way to call it?
I would like to read this result where is from trc usdt documents. link:[Trc usdt](https://developers.tron.network/docs/trc20-introduction) ``` constant_result is Hex type Hex: 0000000000000000000000000000000000000000000000000000000000000020000000000 000000000000000000000000000000000000000000000000000000a5465746865722055534 400000000000000000000000000000000000000000000 Convert to decimal:Tether USD ```
Good afternoon, tell me how to correctly call the smart contract function, which requires sending money, thank you.
_Raise the exception,when address is startswith "0x"_ https://github.com/iexbase/tron-api-python/blob/a4e08966e9b2110cdb1a364431a01d0484cb11d2/tronapi/common/account.py#L47
tell me how to be, I can’t solve the problem, there is a method in the contract that takes arrays as parameters: ``` function_selector='pay_royaltie(address [], uint256[], uint256[])', ``` how do...
Hi, i'm currently executing this: ```python account = Tron().create_account tron = Tron(**{"private_key": account.private_key, "default_address": account.address.hex}) address = tron.default_address.hex transactions = tron.trx.get_transactions_to_address(address=address) ``` But i get this error on the last...
:(
For a while working with this library and I can say that in addition to the existing bugs, it is not very convenient. Why is the Tron class, which is...
I find that the documentation/examples do not mention how to create the tron instance with contract owner information. After reading the source code I was able to figure out the...
File "C:\Python\Python36-32\lib\site-packages\tronapi\common\account.py", line 96, in address 'base58': to_base58.decode() AttributeError: 'str' object has no attribute 'decode' fix for python3: 'base58': to_base58
When trying to do multi-signature using an 'active' permission you need to be able to set the [Permission_id](https://github.com/tronprotocol/protocol/blob/f08aa0cf86eec4803b401b2ec4e2f6ae400eecc5/core/Tron.proto#L281) in the transaction's contract e.g. ```python create_tx["raw_data"]["contract"][0]["Permission_id"] = 2 ``` However, the...