diff --git a/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs b/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs index ecaa294ee..5be72bb01 100644 --- a/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs +++ b/NineChronicles.Headless/GraphTypes/TransactionHeadlessQuery.cs @@ -6,6 +6,7 @@ using System.Text; using System.Text.Json; using System.Text.Json.Nodes; +using System.Text.RegularExpressions; using Bencodex; using Bencodex.Json; using GraphQL; @@ -75,7 +76,7 @@ public TransactionHeadlessQuery(StandaloneContext standaloneContext) new QueryArgument> { Name = "limit", Description = "number of block to query." }, new QueryArgument> - { Name = "actionType", Description = "filter tx by having actions' type" } + { Name = "actionType", Description = "filter tx by having actions' type. It is regular expression." } ), resolve: context => { @@ -99,7 +100,7 @@ public TransactionHeadlessQuery(StandaloneContext standaloneContext) return false; } - return typeId == actionType; + return Regex.IsMatch(typeId, actionType); })); return transactions;