Skip to main content
Welcome to near-kit. If you have built on NEAR before, you know that the tooling can sometimes feel… heavy. near-kit is an attempt to fix that. It is a modern, lightweight, and opinionated TypeScript SDK designed to make interacting with the NEAR blockchain feel as simple as using fetch.

Why near-kit?

Human-Readable Units

No more calculating zeros. Write "10.5 NEAR" or "30 Tgas" — the library handles conversions.

Fluent API

Chainable builder pattern that makes your code read like a sentence.

Type Safety

Full TypeScript support with typed errors and contract interfaces.

Universal

Same API for backend scripts, frontend dApps, and integration tests.

See It In Action

await near
  .transaction("alice.near")
  .createAccount("bob.alice.near")
  .transfer("bob.alice.near", "10 NEAR")
  .send()

Get Started