public void get_key_references() { var pubKey = new PublicKeyType("STM6C8GjDBAHrfSqaNRn4FnLLUdCfw3WgjY3td1cC4T7CKpb32YM6"); var args = new GetKeyReferencesArgs() { Keys = new[] { pubKey } }; var resp = Api.GetKeyReferences(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); }
public async Task get_key_references() { var pubKey = new PublicKeyType(Config.KeyPrefix + "6C8GjDBAHrfSqaNRn4FnLLUdCfw3WgjY3td1cC4T7CKpb32YM6"); var args = new GetKeyReferencesArgs { Keys = new[] { pubKey } }; var resp = await Api.GetKeyReferencesAsync(args, CancellationToken.None).ConfigureAwait(false); WriteLine(resp); Assert.IsFalse(resp.IsError); }
/// <summary> /// API name: get_key_references /// /// </summary> /// <param name="args">API type: get_block_header_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: account_name_type</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetKeyReferencesReturn> > GetKeyReferencesAsync(GetKeyReferencesArgs args, CancellationToken token) { return(CustomGetRequestAsync <GetKeyReferencesReturn>(KnownApiNames.AccountByKeyApi, "get_key_references", args, token)); }