tron-api-python | A Python API for interacting with Tron | REST library
kandi X-RAY | tron-api-python Summary
kandi X-RAY | tron-api-python Summary
A Python API for interacting with Tron (TRX)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new Token
- Return a hexadecimal representation of an address
- Replace an old entry
- Replaces old with new name with new name
- Trigger a smart contract
- Encode the givenabi
- Return the input types of abi
- Check if the arguments can be decoded
- Wait for a transaction ID
- Create a new transaction exchange
- Verify a given message
- Return the block associated with the given block identifier
- Inject tokens into the exchange
- Convert a base58 address to hex
- Draw tokens from exchange
- Update the energy limit for a contract
- Update account permissions
- Gets the result of an event
- Sign a transaction
- Transfer a TRX token
- Purchase a token
- Freeze balance
- Update a setting
- Vote the received data
- Create token exchange
- Returns the bandwidth of the account
- Send exchange tokens
tron-api-python Key Features
tron-api-python Examples and Code Snippets
Community Discussions
Trending Discussions on tron-api-python
QUESTION
I'd like to get the balance of a TRC20 token (in this case the WIN token) for a Tron wallet address that owns WIN tokens.
I'm using the Python module tron-api-python and based on what i've read on GitHub and the docs the code for that should look something like this:
...ANSWER
Answered 2020-Jun-19 at 09:22Found it myself. This is not the code to get the balance but to send the WIN token so for this to return the balance the function_selector
and the parameters
would need to change but the rest should be fine since both is based on triggering a smart contract.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tron-api-python
You can use tron-api-python like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page