Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/clarinet/index.ts>Chain

Clarinet is a simple, modern and opinionated runtime for testing, integrating and deploying Clarity smart contracts.
Go to Latest
class Chain
import { Chain } from "https://deno.land/x/clarinet@v0.14.0/index.ts";

Constructors

new
Chain(sessionId: number)

Properties

blockHeight: number
sessionId: number

Methods

callReadOnlyFn(
contract: string,
method: string,
args: Array<any>,
sender: string,
): ReadOnlyFn
mineBlock(transactions: Array<Tx>): Block
mineEmptyBlock(count: number): EmptyBlock
mineEmptyBlockUntil(targetBlockHeight: number): EmptyBlock
interface Chain
import { type Chain } from "https://deno.land/x/clarinet@v0.14.0/index.ts";

Properties

sessionId: number