Filtering messages on attributes

You can filter on anything you see from the data field using jsonpath. Please note the value has to be including the type, for if you want to filter based on a String value use "\"value\"", for Integer use "14".

query MessagesFundRenewalForTokenId {
  messages(
    cosmwasmMethods: ["fund_renewal"]
    attributeFilters: {operator: AND, filters: [{path: "$.msg.fund_renewal.token_id", value: "\"allegedly\"", operator: EQUAL}]}
  ) {
    edges {
      node {
        cosmwasmMethod
        data
        blockHeight
        transaction {
          errorMessage
        }
      }
    }
  }
}

Try it out live on explorer