Get specific data-map inside a contract
Attempt to fetch data from a contract data map. The contract is identified with [Stacks Address] and [Contract Name] in the URL path. The map is identified with [Map Name].
The key to lookup in the map is supplied via the POST body. This should be supplied as the hex string serialization of the key (which should be a Clarity value). Note, this is a JSON string atom.
In the response, data is the hex serialization of the map response. Note that map responses are Clarity option types, for non-existent values, this is a serialized none, and for all other responses, it is a serialized (some ...) object.
Path parameters
Stacks address
Contract name
Map name
Query parameters
Returns object without the proof field when set to 0
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 6 of the 21 revisions of this API.322
- ●
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
- ●
- ▲
added required request body
request-body-added-required
- ▲
- ▲
for the
queryrequest parameteruse_latest_tip, the type/format was changed fromstring/toboolean/request-parameter-type-changed
- ▲
- ▲
removed the request body
request-body-removed
- ○
added the new optional
queryrequest parameteruse_latest_tipnew-optional-request-parameter
- ▲