# transactionsByPactCode **Type:** GraphQL queries **Description:** Retrieve a paginated list of transactions that executed a specific Pact code. This query allows you to search for transactions based on the exact Pact code they executed. It’s particularly useful when you want to trace all interactions with a specific contract function, audit how and when a certain piece of code was used on-chain, or analyze usage patterns of a given module. Because the match is performed on the full Pact code string, results will only include transactions where the executed code exactly matches the provided `pactCode`. This query is commonly used by block explorers, indexers, and analytics tools to track contract usage and behavior over time. ## Arguments - pactCode (String): The exact Pact code to filter transactions by. Only transactions that executed this code will be returned. Example: `"(coin.transfer \\\"k:abc...\\\" \\\"k:def...\\\" 1.0)"` - after (String): Cursor to start paginating **after** a specific result. Used for forward pagination. - before (String): Cursor to start paginating **before** a specific result. Used for backward pagination. - first (Int): Maximum number of transactions to return when paginating forward. - last (Int): Maximum number of transactions to return when paginating backward. ## Response **Type:** QueryTransactionsByPactCodeConnection **Description:** undefined ### Fields - edges (QueryTransactionsByPactCodeConnectionEdge) - pageInfo (PageInfo)