near-kit

Build NEAR-enabled applications with a TypeScript library for contract interaction, wallets, and sandbox testing.

14|3|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/near/agent-skills --skill near-kit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: near-kit
Source: https://github.com/near/agent-skills/tree/main/skills/near-kit
Command: npx skills add https://github.com/near/agent-skills --skill near-kit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a TypeScript library enabling developers to interact with NEAR Protocol by performing read (view) operations, write (call) transactions, manage wallets, and test contracts in a sandboxed environment.

Core Features & Use Cases

  • View methods and read-only contract queries.
  • Transaction builder with multi-action flows, signing, and sandbox testing.
  • Wallet integrations and React bindings for frontend apps.
  • Type-safe contracts and key management utilities for secure development.
  • Use case: quickly bootstrap a NEAR-enabled frontend that reads data, submits transactions, and authenticates users via wallet providers.

Quick Start

Install the near-kit package and create a Near instance with your preferred network (testnet for experimentation). Then use near.view(), near.call(), and near.send() to interact with contracts and wallets.

Frequently Asked Questions about near-kit

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

FAQPage Schema
How do I interact with NEAR blockchain contracts using TypeScript?

You can interact with NEAR contracts in TypeScript by using a library that provides core operations like view, call, and send. This allows you to execute read-only queries and state-changing transactions across web and Node.js environments.

What is the best way to test NEAR smart contracts in a sandbox?

Testing NEAR smart contracts in a sandbox involves using utilities that simulate the blockchain environment locally. This allows you to validate transaction flows and contract state changes without deploying to the mainnet or testnet.

How do I integrate a NEAR wallet into a React frontend application?

Integrating a NEAR wallet into a React frontend requires wallet bindings that handle user authentication and transaction signing. This streamlines the workflow for users to connect their wallets and submit transactions securely.

Can I build multi-action transactions for the NEAR Protocol?

Yes, you can build multi-action transactions for the NEAR Protocol using a fluent Transaction Builder. This feature allows you to construct, batch, and sign complex transaction flows programmatically before submitting them to the network.

How do I manage keys for type-safe NEAR development?

Managing keys for type-safe NEAR development involves using key management utilities provided by the library. This ensures secure handling of signing keys while maintaining TypeScript type safety during contract interactions.

Does near-kit work in both web and Node.js environments?

Yes, the toolkit supports both web and Node.js environments, enabling frontend and backend developers to perform read operations, write transactions, and sandbox testing across different JavaScript runtime contexts.