Ejemplo n.º 1
0
 //Returns the ABI interface of specific contract.
 public IEnumerator GetABI(string chainAddressOrName, string contractName, Action <ABIContract> callback, Action <EPHANTASMA_SDK_ERROR_TYPE, string> errorHandlingCallback = null)
 {
     yield return(WebClient.RPCRequest(Host, "getABI", errorHandlingCallback, (node) => {
         var result = ABIContract.FromNode(node);
         callback(result);
     }, chainAddressOrName, contractName));
 }
Ejemplo n.º 2
0
 //Returns the ABI interface of specific contract.
 public void GetABI(string chainAddressOrName, string contractName, Action <ABIContract> callback, Action <EPHANTASMA_SDK_ERROR_TYPE, string> errorHandlingCallback = null)
 {
     _client.SendRequest(Host, "getABI", errorHandlingCallback, (node) => {
         var result = ABIContract.FromNode(node);
         callback(result);
     }, chainAddressOrName, contractName);
 }