Smart Contracts
Get contract data variable
Changed onFetch a data variable from a smart contract. Returns the raw hex-encoded value of the variable.
get/v2/data_var/{principal}/{contract_name}/{var_name}
Request
- Base URLhttp://localhost:20443
- URLhttp://localhost:20443/v2/data_var/{principal}/{contract_name}/{var_name}
- Authnone required
Path parameters
var_nameClarity Name required(unresolved $ref)
Variable name (must be a valid Clarity name)
Parameters
./components/parameters/standard-principal.yaml (unresolved $ref)
./components/parameters/contract-name.yaml (unresolved $ref)
./components/parameters/proof.yaml (unresolved $ref)
./components/parameters/tip.yaml (unresolved $ref)
Response
The data variable value
Clarity Data required(unresolved $ref)
Changes
- info
for the
pathrequest parametervar_name, the type was generalized fromstringto no type
- info
- info
for the
pathrequest parametervar_name, the type was generalized from no type tostring
- info