Constants

Get global constant by address

Returns global constant with specified address (expression hash).

get/v1/constants/{address}

Path parameters

addressstring required

Global address (starts with expr..)

Query parameters

formatinteger

Constant value format (0 - micheline, 1 - michelson, 2 - bytes (base64))

Response

addressstring required

Global address (expression hash)

{"stackTrail":"components:schemas:Constant:properties:value","oasType":"schema","type":"unknown","description":"Constant value (either micheline, michelson or bytes, depending on the `format` parameter)"}
sizeinteger

Constant size in bytes

refsinteger

Number of contracts referencing this constant

creationLevelinteger

Level of the first block baked with this software

creationTimestring date-time

Datetime of the first block baked with this software

{"stackTrail":"components:schemas:Constant:properties:extras","oasType":"schema","type":"unknown","description":"Off-chain extras","nullable":true}

Changes

No recorded changes to this endpoint across all 1 revision of this API.