7 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
155
views
Send all account balance TRX using Tronpy
I use tronpy to make TRX and TRC20 transactions. I wonder if there is any way to send the whole balance. Right now I only found a way how to send usual transaction:
priv_key = PrivateKey(bytes.fromhex(...
0
votes
1
answer
3k
views
Calculating TRX gas fee for a transaction/account
Hi i was sending a transaction on python with tronpy library, but anytime i try to send it. using the library it throws out an error saying out of balance which makes sense because i send the full ...
0
votes
1
answer
2k
views
How to send USDT TRC20 via Python
How can I send USDT TRC20 via Python?
I used this code:
from tronpy import Tron
from tronpy.keys import PrivateKey
client = Tron(network='mainnet')
priv_key = PrivateKey(bytes.fromhex("0"))
...
0
votes
0
answers
579
views
Python tronpy -- account not found on-chain (get_account_balance())
have a exceptions when try to get a acount balance use a tronpy
exception: tronpy.exceptions.AddressNotFound: account not found on-chain
have this problem with a new wallet and with a just adress from ...
1
vote
0
answers
211
views
Trigger a function on tron blockchain
I'm trying to trigger buyEnergy on this contract TEeLFcbSc2LFSFrTZnWRCacZzo3ZtBybh2
buyEnergy function accept 5 parameters
buyEnergy(address _receiver, uint8 _energyRentalUnit, uint256 _energyAmount, ...
2
votes
2
answers
5k
views
How to transfer TRC20 token using tronpy?
I want to send USDT TRC20 tokens using tronpy, while i succeded to transfer TRX, same approach failed for the TRC20 tokens, here's my code:
import codecs
from tronpy.keys import PrivateKey
from ...
1
vote
0
answers
2k
views
Sending TRX with tronpy
I'm using tronpy library to send trx, here is my code:
from tronpy import Tron
from tronpy.keys import PrivateKey
# integers representing half & one Tron
HALF_TRON = 500000
ONE_TRON = 1000000 #...