call_read_only_function
Query Stacks smart contracts by invoking read-only functions to retrieve data without creating a transaction.
Instructions
Call a read-only function on a Stacks smart contract without creating a transaction
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Optional sender address for the function call context | SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7 |
| network | No | Network to query | testnet |
| contractName | Yes | The name of the contract | |
| functionArgs | No | Array of function arguments as Clarity values. Examples: ['u123'] for uint, ['"hello"'] for string, ['0x1234'] for buffer | |
| functionName | Yes | The name of the read-only function to call | |
| contractAddress | Yes | The Stacks address of the contract (e.g., 'SP2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKNRV9EJ7') |