Quickstart
Pactwright isn’t on npm yet, so you work from the repositories. This page gets you from “what is this?” to running the tests in about ten minutes. You need Node.js 24, pnpm, and, for the contract, Rust and the Stellar CLI 28.1.0.
1. Look at a real pact
Section titled “1. Look at a real pact”On 29 October 2026 an escrow pact was judged by the hosted verifier and settled on testnet. Open it in Studio:
pactwright-studio-testnet.onrender.com/pact/40725564…5c55
You’ll see the three steps it went through: opened (1 USDC locked), verdict (ALLOW 1 USDC, signed by the verifier), settled (1 USDC to the seller). Each step links to its transaction on Stellar Expert. The hosted services run on a free tier, so the first page can take up to a minute to load.
2. Read the contract’s configuration
Section titled “2. Read the contract’s configuration”This is a read-only simulation: it costs nothing and needs only a funded testnet identity in your Stellar CLI.
stellar contract invoke --network testnet --source <your-identity> --send=no \ --id CDUXJJUNYFILEYHE3LITANJEKCDFERNAABOSG75OWATFVM776BCMFEV6 -- get_configThe result shows the admin, the payment token (testnet USDC), the verifier’s public key and the longest pact allowed. Testnet deployments lists what each value should be.
3. Build and test each repository
Section titled “3. Build and test each repository”# The contract: invariants, deadlines, fuzzing, budgets, integration with Accensa's contractsgit clone https://github.com/Pactwright/Pactwright-contracts.gitcd Pactwright-contracts && scripts/build.sh && cargo testcd ..
# The Kit: SDK, seller middleware, verifiergit clone https://github.com/Pactwright/Pactwright-Kit.gitcd Pactwright-Kit && pnpm install && pnpm typecheck && pnpm testcd ..
# Studiogit clone https://github.com/Pactwright/Pactwright-studio.gitcd Pactwright-studio && pnpm install && pnpm testscripts/build.sh prints the contract’s WASM hash. It should be 748b5dbc…5d1a4, the same bytes as the deployed contract. Verify it yourself shows how to compare.
4. Run a purchase on testnet
Section titled “4. Run a purchase on testnet”The Kit’s end-to-end suite opens real pacts on testnet and drives them to the end. Running all scenarios needs the verifier’s secret key, so maintainers run it in CI every night. Anyone can trigger and watch it on GitHub, and read the results:
- Workflow:
e2e-testnet.yml - Latest report:
e2e/testnet/results/
- Understand what just happened: A pact, step by step.
- Sell something: Sell behind a pact.
- Buy something: Buy as an agent.
We never DM first; there is no token or airdrop. Security issues go to a repo's SECURITY.md, not chat. Testnet only — not audited.