askill
aztec-typescript

aztec-typescriptSafety 95Repository

Generate TypeScript client code for interacting with Aztec contracts. Use when building frontend integrations, creating contract clients, or setting up wallet connections.

8 stars
1.2k downloads
Updated 3/5/2026

Package Files

Loading files...
SKILL.md

Aztec TypeScript Integration

Generate TypeScript code for interacting with Aztec contracts.

Subskills

Quick Start: Contract Interaction

import { MyContract } from "../artifacts/MyContract.js";
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee";

// Get contract instance
const contract = MyContract.at(contractAddress, wallet);

// Call a method
await contract.methods.myMethod(arg1, arg2).simulate({ from: account.address });
const tx = await contract.methods.myMethod(arg1, arg2).send({
    from: account.address,
    fee: { paymentMethod },
    wait: { timeout: 600 }
});

console.log('Transaction successful');

Generated Artifacts

After running aztec codegen, you get TypeScript bindings:

// src/artifacts/MyContract.ts
import { MyContractContract } from "../artifacts/MyContract.js";

// Available methods
MyContractContract.deploy(wallet, ...args)  // Deploy new contract
MyContractContract.at(address, wallet)       // Connect to existing
contract.methods.myFunction(args)            // Call contract method

Key Imports

// Contract and wallet
import { Wallet } from "@aztec/aztec.js/wallet";
import { AztecAddress } from "@aztec/aztec.js/addresses";

// Transaction handling
import { TxReceipt } from "@aztec/stdlib/tx";

// Fee payment
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee";

// Fields and types
import { Fr, GrumpkinScalar } from "@aztec/aztec.js/fields";

// Logging
import { type Logger, createLogger } from "@aztec/foundation/log";

Transaction Flow

  1. Get contract instance (at() or deploy())
  2. Call method via contract.methods.xxx()
  3. Simulate first to catch errors .simulate({ from })
  4. Send with fee payment and wait .send({ from, fee, wait: { timeout } })
  5. Transaction resolves when confirmed

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

72/100Analyzed 3/8/2026

Good technical reference skill for Aztec TypeScript integration with clear code examples and structured content. Provides actionable patterns for contract interaction, wallet setup, and transaction flows. Located in dedicated skills folder which is positive. Somewhat specific to Aztec ecosystem but well-structured as a reference. Tags seem mismatched (ci-cd, observability don't fit). Missing some depth in subskill details.

95
85
58
65
72

Metadata

Licenseunknown
Version-
Updated3/5/2026
Publishercritesjosh

Tags

ci-cdobservability