# PactQuery **Type:** GraphQL inputs **Description:** Represents a single Pact query to be executed on a specific chain. ## Fields - chainId (String): The ID of the chain on which the Pact code should be executed. - code (String): The Pact code to execute. Examples: - `"(+ 1 2)"` - `"(coin.get-details \\\"k:abcdef123456...\\\")"` - data (PactQueryData): Optional arguments or environment data for the Pact code execution. Typically used to pass variables or structured input required by the smart contract. - key (String) - value (String)