Exemple #1
0
 public Task <EthereumContract> CallContract([FromBody] EthereumContractCall contractCall)
 {
     return(_service.CallContractMethodAsync(contractCall));
 }
Exemple #2
0
 public async Task <EthereumContract> CallContractMethodAsync(EthereumContractCall contractCall)
 {
     return(await Post <EthereumContractCall, EthereumContract>($"/v1/{_coinType}/{_network}/callcontract", contractCall));
 }
 public async Task <EthereumContract> CallContractMethodAsync(EthereumContractCall contractCall)
 {
     return(await Post <EthereumContract, EthereumContract>($"/v1/{_coinType}/{_network}/contracts/{HttpUtility.UrlEncode(contractCall.Address)}/{HttpUtility.UrlEncode(contractCall.Method)}?token={_token}", contractCall.Contract));
 }