public async Task get_transaction() { var args = new GetTransactionArgs { Id = "" }; var resp = await Api.GetTransactionAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_transaction() { var args = new GetTransactionArgs() { Id = "" }; var resp = Api.GetTransaction(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.AccountHistoryApi, "get_transaction", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_transaction /// /// </summary> /// <param name="args">API type: get_transaction_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_transaction_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetTransactionReturn> > GetTransaction(GetTransactionArgs args, CancellationToken token) { return(CustomGetRequest <GetTransactionReturn>(KnownApiNames.AccountHistoryApi, "get_transaction", args, token)); }