public async Task <JsonResult> Transfer(string privateKey, string acceptWallet, decimal amount) { try { conflux = new NConflux(url, privateKey); await conflux.Transfer(acceptWallet, amount); return(Json("ok")); } catch (Exception ex) { return(Json("网络异常,请稍后重试!")); } }
public static void Transfer() { conflux = new NConflux(url, privateKey); conflux.Transfer("cfxtest:aatutrr8egewvwsu22f3gsh2yezhysemhuuv6py0tz", 3.1415m).Wait(); }