Contract
Contract Addresses
Chain
Address
TRON
TCFNp179Lg46D16zKoumd4Poa2WFFdtqYj
NILE
TDAQGc5Ekd683GjekSaLzCaeg7jGsGSmbh
Note: The original contract addresses on the mainnet have been deprecated. The deprecated addresses are as follows:
TJ4NNy8xZEqsowCBhLvZ45LCqPdGjkET5j (deprecated)
TFVisXFaijZfeyeSjCEVkHfex7HGdTxzF9 (deprecated)
Interacting with the Contract
Using TronWeb to interact with the contract. After initializing the TronWeb instance, you can easily interact with the online contract.
Initializing TronWeb Instance
const TronWeb = require('tronweb')
const privateKey = process.env.PRIVATE_KEY
const apiKey = process.env.API_KEY
var tronWeb = new TronWeb({
fullHost: "https://api.trongrid.io",
headers: { "TRON-PRO-API-KEY": apiKey },
privateKey: privateKey,
})