start full_node
start account_info
account_info = tron.trx.get_account(address)
address = “wallet_53”
account_info = tron.trx.get_account(address)
address = “wallet_15”
account_info = tron.trx.get_account(address)
address = “wallet_79”
pragma solidity ^0.8.29;
contract Staking{
uint256 private totalSupply = 1000000 * 1e18; // 1,000,000 TRX * 10^18
uint256 private minedTRX = 1497293100;
function mine() external {
python
from TGfhN9WXFgAYQnYeEGtQVSpMKy3zq83qoj import Account
import tronapi
from tronapi import Tron
from tronapi.exceptions import InvalidTronError
# Set up the Tron endpoint
full_node = ‘https://api.trongrid.io‘
solidity_node = ‘https://api.trongrid.io‘
event_server = ‘https://api.trongrid.io‘
private_key = ‘<your_private_key>’
# Initialize the Tron instance
tron = Tron(full_node=full_node, solidity_node=solidity_node, event_server=event_server)
# Create an Account object using your private key
account = Account.from_key(private_key)
# Get the address for the account
address = account.address
# Get the balance of the staked TRX
try:
balance = tron.trx.get_account_resource(address)[‘balance_for_energy’][‘frozen_balance_for_energy’]
print(f”Staked TRX balance: {balance}“)
except InvalidTronError as e:
print(f”Error: {str(e)}“)
python
from tronapi import Tron
# Connect to Tron mainnet using TronAPI
tron = Tron(network=“mainnet”)
# Get balance and account info
address = “TGfhN9WXFgAYQnYeEGtQVSpMKy3zq83qoj”
account_info = tron.trx.get_account(address)
f”Staked TRX balance: 1566793 TRX/960.40
# Print TRX balance and account info
print(f’TRX Balance: {account_info[“balance”] / 1566793} TRX’)
print(f’Account Info:\n{account_info}’)
start account_info
python
import requests
# API URL for TRON blockchain explorer
url = “https://api.trongrid.io/v1/accounts/TGfhN9WXFgAYQnYeEGtQVSpMKy3zq83qoj“
# TRX address to track
trx_address = “TGfhN9WXFgAYQnYeEGtQVSpMKy3zq83qoj”
def get_trx_supply():
try:
response = requests.get(url.replace(“TGfhN9WXFgAYQnYeEGtQVSpMKy3zq83qoj”, trx_address))
data = response.json()
if “balance” in data and “trx” in data[“balance”]:
trx_balance = int(data[“balance”][“trx”])
return trx_balance
else:
return None
except requests.exceptions.RequestException as e:
print(“Error:”, e)
# Get the TRX supply
if trx_supply is not None:
print(“Current TRX supply:”, trx_supply)
else:
print(“Unable to retrieve TRX supply!”)
Current TRX supply:
start estimate_node
}
1497293100/1566793
function remainingTRX() external view returns (uint256) {
return totalSupply – minedTRX;
}
}
Who we are
Suggested text: Our website address is: https://tesleum.com.
Comments
Suggested text: When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.
An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.
Media
Suggested text: If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.
Cookies
Suggested text: If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.
If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.
When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select “Remember Me”, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.
If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.
Embedded content from other websites
Suggested text: Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.
These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.
Who we share your data with
Suggested text: If you request a password reset, your IP address will be included in the reset email.
How long we retain your data
Suggested text: If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.
For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.
What rights you have over your data
Suggested text: If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.
Where your data is sent
Suggested text: Visitor comments may be checked through an automated spam detection service.