Properties

The Clarinet JS SDK provides properties that can be used to interact with simnet.

Installation

npm install @hirosystems/clarinet-sdk

blockHeight

Returns the current block height of simnet.

const currentBlockHeight = simnet.blockHeight;

deployer

Returns the default deployer address as defined in the project file.

const currentDeployerAddress = simnet.deployer;

currentEpoch

Returns the current epoch of simnet.

This represents the Stacks blockchain's progress through discrete time periods, cycles, or upgrades.

const epoch = simnet.currentEpoch;