Example #1
0
 /// <summary>
 /// Create stream item from an address; Blockchain name is explicit
 /// </summary>
 /// <param name="client"></param>
 /// <param name="blockchainName"></param>
 /// <param name="fromAddress"></param>
 /// <param name="streamItemEntity"></param>
 /// <returns></returns>
 public static Task <CliResponse <string> > PublishStreamItemKeysFrom(this IMultiChainCliWallet client, string blockchainName, string fromAddress, PublishEntity <DataText> streamItemEntity) =>
 client.PublishFromAsync(blockchainName, fromAddress, streamItemEntity.StreamIdentifer, streamItemEntity.Keys, streamItemEntity.Data, streamItemEntity.Options);
Example #2
0
 /// <summary>
 /// Create stream item; Blockchain name is explicit
 /// </summary>
 /// <param name="client"></param>
 /// <param name="blockchainName"></param>
 /// <param name="streamItemEntity"></param>
 /// <returns></returns>
 public static Task <CliResponse <string> > PublishStreamItemKeys(this IMultiChainCliWallet client, string blockchainName, PublishEntity <DataJson> streamItemEntity) =>
 client.PublishAsync(blockchainName, streamItemEntity.StreamIdentifer, streamItemEntity.Keys, streamItemEntity.Data, streamItemEntity.Options);
Example #3
0
 /// <summary>
 /// Create stream item from an address; Blockchain name is inferred
 /// </summary>
 /// <param name="client"></param>
 /// <param name="fromAddress"></param>
 /// <param name="streamItemEntity"></param>
 /// <returns></returns>
 public static Task <CliResponse <string> > PublishStreamItemKeyFrom(this IMultiChainCliWallet client, string fromAddress, PublishEntity <DataJson> streamItemEntity) =>
 client.PublishFromAsync(fromAddress, streamItemEntity.StreamIdentifer, streamItemEntity.Key, streamItemEntity.Data, streamItemEntity.Options);
Example #4
0
 /// <summary>
 /// Create stream item; Blockchain name is inferred
 /// </summary>
 /// <param name="client"></param>
 /// <param name="streamItemEntity"></param>
 /// <returns></returns>
 public static Task <CliResponse <string> > PublishStreamItemKey(this IMultiChainCliWallet client, PublishEntity <DataText> streamItemEntity) =>
 client.PublishAsync(streamItemEntity.StreamIdentifer, streamItemEntity.Key, streamItemEntity.Data, streamItemEntity.Options);