public class TokenInfo
{
public string symbol { get; set; }
public string address { get; set; }
public int decimals { get; set; }
public string name { get; set; }
}
public class TRC20ResponseDatum
{
public string transaction_id { get; set; }
public TokenInfo token_info { get; set; }
public long block_timestamp { get; set; }
public string from { get; set; }
public string to { get; set; }
public string type { get; set; }
public string value { get; set; }
}
public class Meta
{
public long at { get; set; }
public int page_size { get; set; }
}
public class TRC20ResponseModel
{
public List data { get; set; }
public bool success { get; set; }
public Meta meta { get; set; }
}
var rClient = new RestSharp.RestClient("https://nile.trongrid.io/");
string usdtContract ="TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj";
var resultContent = rClient.ExecuteAsGet(new RestSharp.RestRequest("v1/accounts/" + wallet + "/transactions/trc20"), "GET").Content;
var obj = JsonConvert.DeserializeObject(resultContent);
return obj;