Call read-only function
Call a read-only public function on a given smart contract.
The smart contract and function are specified using the URL path. The arguments and the simulated tx-sender are supplied via the POST body in the following JSON format:
Path parameters
Stacks address
Contract name
Function name
Query parameters
The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).
Request body
Response
Success
Changes
Changed in 5 of the 21 revisions of this API.122
- ●
deleted the
queryrequest parameteruse_latest_tiprequest-parameter-removed
- ●
- ○
added the new optional
queryrequest parameteruse_latest_tipnew-optional-request-parameter
- ○
- ●
deleted the
queryrequest parameteruse_latest_tiprequest-parameter-removed
- ●
- ▲
for the
queryrequest parameteruse_latest_tip, the type/format was changed fromstring/toboolean/request-parameter-type-changed
- ▲
- ○
added the new optional
queryrequest parameteruse_latest_tipnew-optional-request-parameter
- ○