public async Task broadcast_block() { var args = new BroadcastBlockArgs { Block = new SignedBlock() }; var resp = await Api.BroadcastBlockAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void broadcast_block() { var args = new BroadcastBlockArgs() { Block = new SignedBlock() }; var resp = Api.BroadcastBlock(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.NetworkBroadcastApi, "broadcast_block", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: broadcast_block /// /// </summary> /// <param name="args">API type: broadcast_block_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <VoidResponse> > BroadcastBlockLikeSteemitAsync(BroadcastBlockArgs args, CancellationToken token) { return(CondenserBroadcastRequestAsync <VoidResponse>(KnownApiNames.NetworkBroadcastApi, "broadcast_block", args, token)); }
/// <summary> /// API name: broadcast_block /// /// </summary> /// <param name="args">API type: broadcast_block_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public JsonRpcResponse BroadcastBlock(BroadcastBlockArgs args, CancellationToken token) { return(CustomGetRequest(KnownApiNames.NetworkBroadcastApi, "broadcast_block", args, token)); }
/// <summary> /// API name: broadcast_block /// /// </summary> /// <param name="args">API type: broadcast_block_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <VoidResponse> > CondenserBroadcastBlock(BroadcastBlockArgs args, CancellationToken token) { return(CondenserCustomGetRequest <VoidResponse>(KnownApiNames.CondenserApi, "broadcast_block", args, token)); }