Beispiel #1
0
 /// <summary>
 /// Create transaction filter from an address; Blockchain name is explicit
 /// </summary>
 /// <param name="client"></param>
 /// <param name="blockchainName"></param>
 /// <param name="fromAddress"></param>
 /// <param name="txFilterEntity"></param>
 /// <returns></returns>
 public static Task <CliResponse <string> > CreateTxFilterFrom(this IMultiChainCliWallet client, string blockchainName, string fromAddress, TxFilterEntity txFilterEntity) =>
 client.CreateFromAsync(blockchainName, fromAddress, txFilterEntity.EntityType, txFilterEntity.Name, txFilterEntity.Restrictions, txFilterEntity.JavaScriptCode);
Beispiel #2
0
        // *** Create Tx Filter extension methods

        /// <summary>
        /// Create transaction filter; Blockchain name is inferred
        /// </summary>
        /// <param name="client"></param>
        /// <param name="txFilterEntity"></param>
        /// <returns></returns>
        public static Task <CliResponse <string> > CreateTxFilter(this IMultiChainCliWallet client, TxFilterEntity txFilterEntity) =>
        client.CreateAsync(txFilterEntity.EntityType, txFilterEntity.Name, txFilterEntity.Restrictions, txFilterEntity.JavaScriptCode);