public async Task get_ops_in_block() { var args = new GetOpsInBlockArgs { BlockNum = 2, OnlyVirtual = false }; var resp = await Api.GetOpsInBlockAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_ops_in_block() { var args = new GetOpsInBlockArgs() { BlockNum = 2, OnlyVirtual = false }; var resp = Api.GetOpsInBlock(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.AccountHistoryApi, "get_ops_in_block", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_ops_in_block /// /// </summary> /// <param name="args">API type: get_ops_in_block_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: get_ops_in_block_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <GetOpsInBlockReturn> > GetOpsInBlock(GetOpsInBlockArgs args, CancellationToken token) { return(CustomGetRequest <GetOpsInBlockReturn>(KnownApiNames.AccountHistoryApi, "get_ops_in_block", args, token)); }