Skip to main content
Version: 0.9.1

Constants

GET /explorer/constant/{hash}

Returns information about a Tezos smart contract global constant that can be used like a Macro to replace references in deployed contract code. It's a mechanism to deploy contracts larger than gas limit and re-use commonly needed code segments. Constants may be used in all parts of the contract script (code and types for params, storage and views), but cannot be used in calls. Constants may recursively include other constants.

FieldDescription
address hashConstant address (expr-hash).
creator hashCreator account.
height int64Block height when constant was registered.
storage_size int64Storage size allocated in bytes.
features arrayMichelson features used by this contract. Any of account_factory, contract_factory, set_delegate, lambda, transfer_tokens, chain_id, ticket, sapling, global_constant, timelock, view .
value objectNative Micheline value.