Skip to main content
Let’s get you connected to the NEAR Testnet and sending your first transaction in under 2 minutes.

Prerequisites

Node.js or Bun

Any recent version works

Testnet Account

Create one for free

Private Key

Starts with ed25519:...

Installation

Your First Script

1

Create a file named index.ts

2

Run it

3

See the result

You should see output like:

What’s Next?

Reading Data

Query account state, balances, and contract data

Writing Data

Build and send transactions