Skip to content

Chain attributes#

Chain attributes are defined in the chain attribute space (short name c). Chain attributes may only match chain nodes.

The following chain attributes are available in NSL:

Attribute name Short name Possible values Examples
chainID id c.id == 1

chainID#

The chain.chainID attribute (short name c.id) matches chains with specific chain ID.

Possible values: integers.

Examples:

  • chain.chainID == 1 (short version: c.id == 1): matches all chains with chain ID equal to 1
  • chain.chainID >= 2 and chain.chainID <= 4 (short version: c.id >= 2 and c.id <= 4): matches all chains with chain ID between 2 and 4