async public Task AddNodeAsync(string node, AddNodeAction action) { WalletRequest walletRequest = new WalletRequest("addnode", new List <object>() { node, action.ToString().ToLowerInvariant() }); await RpcRequestAsync <object>(walletRequest); }
public void AddNode(string node, AddNodeAction action) { WalletRequest walletRequest = new WalletRequest("addnode", new List <object>() { node, action.ToString().ToLowerInvariant() }); RpcRequest <object>(walletRequest); }
/** * If it returns without throwing an exception, it went well. */ public static void AddNode(string ipAddress, string port, AddNodeAction type) { SimpleStringRequest ("addnode", qt + ipAddress + ":" + port + qt + ", " + qt + type.ToString () + qt, false); }
/** * If it returns without throwing an exception, it went well. */ public static void AddNode(string ipAddress, string port, AddNodeAction type) { SimpleStringRequest("addnode", qt + ipAddress + ":" + port + qt + ", " + qt + type.ToString() + qt, false); }