Beispiel #1
0
        // *** PublishMultiStreamItemsFrom using an explicit blockchain name

        /// <summary>
        /// Publish multiple stream items from an address; Blockchain name is explicit
        /// </summary>
        /// <param name="client"></param>
        /// <param name="blockchainName"></param>
        /// <param name="fromAddress"></param>
        /// <param name="publishMultiEntity"></param>
        /// <returns></returns>
        public static Task <CliResponse <string> > PublishMultiStreamItemsFrom(this IMultiChainCliWallet client, string blockchainName, string fromAddress, PublishMultiEntity publishMultiEntity) =>
        client.PublishMultiFromAsync(blockchainName, fromAddress, publishMultiEntity.StreamIdentifier, publishMultiEntity.Items.ToArray(), publishMultiEntity.Options);
Beispiel #2
0
        // *** PublishMultiStreamItems using an inferred blockchain name

        /// <summary>
        /// Publish multiple stream items; Blockchain name is inferred
        /// </summary>
        /// <param name="client"></param>
        /// <param name="publishMultiEntity"></param>
        /// <returns></returns>
        public static Task <CliResponse <string> > PublishMultiStreamItems(this IMultiChainCliWallet client, PublishMultiEntity publishMultiEntity) =>
        client.PublishMultiAsync(publishMultiEntity.StreamIdentifier, publishMultiEntity.Items.ToArray(), publishMultiEntity.Options);