Skip to main content
Version: Next

G


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


Gas

Gas is a conceptual measure of resources used when executing transactions on the blockchain.

Gas cost

Gas cost is the amount of gas consumed during the processing cycles that execute a transaction on the network. It is directly correlated with the amount of computer processing a validator needs to provide to execute a transaction.

Gas price

Multiplier applied to gas cost. See dynamic gas pricing.

Genesis

The state of the virtual machine at the beginning of the blockchain.

Groups

The user groups feature provides access control to the entry points of a contract by creating a new user group for that contract (versioned or not). This feature restricts the use of the constructor entry_point, which sets up the necessary data storage in the runtime context that belongs to the contract. Here is how it works:

  • User groups associate a set of URefs with a label.
  • The entry points on a contract can accept a list of labels
  • The runtime checks that a URef from at least one of the allowed groups is present in the caller's context before execution.

Global state

When thinking of a blockchain as a decentralized computer, the global state is its memory state.

When thinking of a blockchain as a shared database, the global state is the snapshot of the database's data.

Technically, a global state is a (possibly extensive) collection of key-value pairs, where the keys are references (Refs), and the values are large binary objects (BLOBs).

For every block B in the blockchain, one can compute the global state achieved by executing all transactions in this block and its ancestors. The root hash identifying this state is stored in every executed block.