1

I couldn't find a c # library for tron. I want to transfer via https://api.trongrid.io api. There is a helper api tool at https://developers.tron.network/reference#trigger-smart-contract. However, it is necessary to decode the parameter. https://developers.tron.network/docs/parameter-and-return-value-encoding-and-decoding I could not translate the function on the upper link to c #. Can you help me ?

S.ahmet BALCI
  • 11
  • 1
  • 2

1 Answers1

0

There is easy transfer method (by password param) and easy transfer (by private key), also documentation has code snippets..

// using rest sharp

var client = new RestClient("https://api.shasta.trongrid.io/wallet/easytransfer");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\"passPhrase\":\"string\",\"toAddress\":\"string\",\"amount\":0}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Mucahid Uslu
  • 367
  • 3
  • 11