Tronweb.contract.at

Query a smart contract.

Usage

tronWeb.contract().at("contractAddress");

Parameters
String

Returns
Object

Example

//Example 1
async function getContract(){
    let res = await tronWeb.contract().at("410d5a65c8ba668840dc1e7edfcd9445760dfb6dc8");
    console.log(res);
}
getContract();// Execute the function

//Example 2
async function getContract(){
    let res = await tronWeb.contract().at("TBBp5VF2q73hfMUoyxr138Kx3kbsi6HQRS");
    console.log(res);
}
getContract();// Execute the function