Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address
— (optional) address calling the contract method in hexadecimal formatcontract_address
— smart contract address to call in hexadecimal formatfunction_selector
— function signature or selector (e.g., “balanceOf(address)”)parameter
— (optional) encoded parameters for the function call in hexadecimal format
Response
result
— execution result object containing:result
— boolean indicating if the call was successful
energy_used
— estimated energy consumption if this were a real transactionconstant_result
— array of return values from the contract method in hexadecimal formattransaction
— transaction object that would be created (for reference, not executed)
Use case
Thewallet/triggerconstantcontract
method is used for:
- Calling read-only smart contract methods to query blockchain state.
- Reading token balances, contract variables, and other view data without costs.
- Testing contract method calls before executing actual transactions.
- Building user interfaces that need to display current contract state.
- Implementing contract interaction tools that require state queries.
- Estimating energy costs for contract method calls before execution.
Body
application/json