/// <summary> /// Adds a new signature on the remote node asynchronously. Secret, SecondSecret are required /// </summary> /// <param name="req">Signature details</param> /// <returns>SignatureAddResponse with transaction details</returns> public async Task<SignatureAddResponse> AddSignatureAsync(SignatureAddRequest req) { _url.Path = Constants.ApiPutSignatureAdd; var response = await _client.PutJsonAsync<SignatureAddRequest, SignatureAddResponse>(_url.ToString(), req); ResetPath(); return response; }
/// <summary> /// Adds a new signature on the remote node synchronously. Secret, SecondSecret are required /// </summary> /// <param name="req">Signature details</param> /// <returns>SignatureAddResponse with transaction details</returns> public SignatureAddResponse AddSignature(SignatureAddRequest req) { var response = AddSignatureAsync(req).GetAwaiter().GetResult(); return response; }