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

x/clarinet/index.ts>Tx

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

Constructors

new
Tx(type: number, sender: string)

Properties

optional
contractCall: TxContractCall
optional
deployContract: TxDeployContract
sender: string
optional
transferStx: TxTransfer
type: number

Static Methods

contractCall(
contract: string,
method: string,
args: Array<string>,
sender: string,
)
deployContract(
name: string,
code: string,
sender: string,
)
transferSTX(
amount: number,
recipient: string,
sender: string,
)