tron-api-python icon indicating copy to clipboard operation
tron-api-python copied to clipboard

A Python API for interacting with Tron (TRX)

Results 46 tron-api-python issues
Sort by recently updated
recently updated
newest added

I am using below code to get token balance for an address: `full_node = 'https://api.trongrid.io' solidity_node = 'https://api.trongrid.io' event_server = 'https://api.trongrid.io' tron = Tron(full_node=full_node, solidity_node=solidity_node, event_server=event_server) tron.private_key = 'my private...

![image](https://user-images.githubusercontent.com/75001051/123119019-56ef9e00-d46d-11eb-9f41-9a8128b218c5.png) 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':...

I try get transaction on tronscan. from tronapi import Tron from tronapi import HttpProvider full_node = HttpProvider('https://api.trongrid.io') solidity_node = HttpProvider('https://api.trongrid.io') event_server = HttpProvider('https://api.trongrid.io') tron = Tron(full_node=full_node, solidity_node=solidity_node, event_server=event_server) result =...

i am using below code to send trc20 token but it give error : AttributeError: 'dict' object has no attribute 'text' import tronapi from tronapi import Tron full_node = 'https://api.trongrid.io'...

I want to send TRX using this module via tron link. How do I achieve this ?

Hi. I want to read the balance of an account from a TRC20 smart contract. I know how to send a "write" transaction using `tron.transaction_builder.trigger_smart_contract` and `tron.trx.sign_and_broadcast(txn['transaction'])` but I don't...

`toSun` method supports decimal.Decimal type. However, [`send_transaction`](https://github.com/iexbase/tron-api-python/blob/master/tronapi/transactionbuilder.py#L59) restricts the type to `float`.

How can i get value energy and bandwith on python tron api? is it possible?