call-smart-contracts

Deploy and interact with Algorand smart contracts using AlgoKit and generated TypeScript clients.

2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/algorandfoundation/xgov-committees --skill call-smart-contracts-algorandfoundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: call-smart-contracts
Source: https://github.com/algorandfoundation/xgov-committees/tree/main/.claude/skills/call-smart-contracts
Command: npx skills add https://github.com/algorandfoundation/xgov-committees --skill call-smart-contracts-algorandfoundation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This set of instructions enables developers to build, deploy, and interact with Algorand smart contracts efficiently using AlgoKit CLI and the generated TypeScript clients, reducing boilerplate and speeding up iteration.

Core Features & Use Cases

  • Build contracts with algokit project run build to generate ARC-56 specs and a typed client.
  • Deploy to localnet, testnet, or mainnet using a deployment script that tracks App IDs and ensures idempotent deployments.
  • Interact with contracts via the generated client: call methods, read global/local state, query box storage, and handle opt-in/close-out workflows.
  • Script automated interactions and testing, enabling bulk operations and end-to-end contract workflows for production-grade setups.

Quick Start

Build the contract, deploy to your target network, then write and run TypeScript scripts using the generated client.

Frequently Asked Questions about call-smart-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy and interact with Algorand smart contracts using TypeScript?

You can deploy and interact with Algorand smart contracts by using AlgoKit CLI to build ARC-56 specs and a generated typed TypeScript client, allowing you to call methods, read state, and manage box storage across localnet, testnet, or mainnet environments.

What do I need to set up before deploying Algorand smart contracts with AlgoKit?

Deploying Algorand smart contracts with AlgoKit requires environment-configured accounts and the generated TypeScript client libraries to enable typed, safe operations. You must build the contract first to generate the necessary typed client for deployment.

Can I read global and local state from Algorand smart contracts using a generated client?

Yes, the generated TypeScript client allows you to read global and local state, query box storage, and handle opt-in and close-out workflows for Algorand smart contracts. This streamlines end-to-end contract workflows and bulk operations.

Does AlgoKit support idempotent deployments for Algorand smart contracts?

Yes, AlgoKit supports idempotent deployments by using a deployment script that tracks App IDs. This ensures you can safely deploy Algorand smart contracts to localnet, testnet, or mainnet without duplicating applications.

What is the best way to automate Algorand smart contract interactions for testing?

The best way to automate Algorand smart contract interactions is by scripting TypeScript operations with the generated client. This enables bulk operations, end-to-end contract workflows, and automated testing for production-grade setups.

How does AlgoKit generate a typed client for Algorand smart contracts?

AlgoKit generates a typed client by running the project build process, which creates ARC-56 specs and the corresponding TypeScript client libraries. These generated clients provide typed, safe operations for deploying and interacting with Algorand smart contracts.