Agent skill

near-api-js Developer Guide

by internet-court in internet-court/internet-court-skill

Reference for building with near-api-js v7 in TypeScript or JavaScript: accounts, keys, signing, contract calls, tokens, unit conversion and meta-transactions on NEAR.

Custom licenceAuto-check passedBackend & APIs

Install near-api-js Developer Guide

skills CLI
$ npx skills add internet-court/internet-court-skill --skill near-api-js -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install internet-court/internet-court-skill near-api-js --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vendored/near/near-api-js .claude/skills/near-api-js && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
near-api-js
GitHub stars
6.6k
Used in
1 other repo
Token cost
~4.1k tokens
SKILL.md length
133 words
Files
8 (incl. references)
Skills in repo
80
Repo updated
First seen
Licence
Custom licence

At a glance

Reference for building with near-api-js v7 in TypeScript or JavaScript: accounts, keys, signing, contract calls, tokens, unit conversion and meta-transactions on NEAR.

  • Creating and signing NEAR transactions from a TypeScript app
  • SKILL.md covers Quick Start, Import Cheatsheet, Core Modules and RPC Endpoints, plus 3 more sections
  • Reaches rpc.mainnet.near.org and free.rpc.fastnear.com
  • Calling NEAR smart contracts, with or without an ABI

What it does

The skill is a working guide to near-api-js v7, which runs in the browser and in Node.js. It covers the Account class, JsonRpcProvider and failover providers, KeyPair and signer types, contracts with and without an ABI, seed phrase helpers, fungible token helpers and the actions used to build transactions, along with a list of RPC endpoints for mainnet, FastNEAR and testnet.

Reference files go deeper on API patterns, contracts, key management, meta-transactions for gasless flows with relayers, NEP-413 message signing for authentication and token handling, including storage deposits for fungible token contracts. It also covers converting between NEAR, yocto and gas units.

When your agent uses it

  • Creating and signing NEAR transactions from a TypeScript app
  • Calling NEAR smart contracts, with or without an ABI
  • Managing accounts, access keys and seed phrases
  • Implementing NEP-413 message signing for authentication
  • Setting up gasless transactions through a relayer

Example prompts

  • “Write a TypeScript script that transfers 5 NEAR from my testnet account to another account.”
  • “Call the get_data view method on contract.near with near-api-js.”
  • “Add a failover RPC provider to our NEAR client.”
  • “Implement NEP-413 sign-in for our web app.”

Requirements

  • The near-api-js package
  • Node.js or a browser runtime

What it can do on your machine

Read from SKILL.md and the folder at commit fa89195. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • rpc.mainnet.near.org
    • free.rpc.fastnear.com
    • test.rpc.fastnear.com
    • rpc.testnet.near.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

near-api-js Developer Guide loads about 4.1k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 163 tokens; SKILL.md has 133 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~163
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 133 words (~4,106 tokens).

“JavaScript/TypeScript library for NEAR blockchain interaction. Works in browser and Node.js.”

— opening of SKILL.md by internet-court, Custom licence
name
near-api-js

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (references) in vendored/near/near-api-js of internet-court/internet-court-skill.

  • SKILL.md
  • LICENSE
  • references/api_patterns.md
  • references/contracts.md
  • references/key_management.md
  • references/meta_transactions.md
  • references/nep413.md
  • references/tokens_guide.md

Open the folder on GitHubat commit fa89195

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in internet-court/internet-court-skill, which our catalogue first saw on October 7, 2026.

Compare with similar skills

near-api-js Developer Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

near-api-js Developer Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
near-api-js Developer Guide this skillinternet-court/internet-court-skill6.6k1 repos~4.1kAutomated safety check: PassCustom licence
Stellar DevVelaPayments/vela-payments131—~1.8kAutomated safety check: PassMIT
Azure AI Voicelive TSmicrosoft/skills3.1k5 repos~3.4kAutomated safety check: PassMIT
Azure Storage Blob TSmicrosoft/skills3.1k5 repos~3.3kAutomated safety check: PassMIT
Sentry Node SDKgetsentry/sentry-for-ai268—~8.4kAutomated safety check: PassApache-2.0
Javascript SDKaiskillstore/marketplace4331 repos~3.3kAutomated safety check: PassNone

Similar skills

  • Stellar Dev

    VelaPayments/vela-payments

    End-to-end Stellar development playbook. An agent skill from VelaPayments/vela-payments.

    131 GitHub stars~1.8k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Azure AI Voicelive TS

    microsoft/skills

    Official

    Azure AI Voice Live SDK for JavaScript/TypeScript. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 5 repos~3.4k tokens
    Backend & APIsAuto-check passed
  • Azure Storage Blob TS

    microsoft/skills

    Official

    Azure Blob Storage JavaScript/TypeScript SDK (@azure/storage-blob) for blob operations.

    3.1k GitHub starsUsed in 5 repos~3.3k tokens
    Backend & APIsAuto-check passed
  • Sentry Node SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Node.js, Bun, and Deno. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~8.4k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Javascript SDK

    aiskillstore/marketplace

    JavaScript/TypeScript SDK for inference.sh - run AI apps, build agents, integrate with all models.

    433 GitHub starsUsed in 1 repo~3.3k tokens
    Backend & APIsAuto-check passed
  • Linea Dependency Maintenance

    Consensys-Incorporated/linea-attestation-registry

    Safely plan and execute dependency maintenance for JavaScript/TypeScript (npm, pnpm) and GitHub Actions, including npm lockfiles, pnpm workspaces, catalogs, overrides, SHA-pinned action versions…

    177 GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check: warnings

More from internet-court/internet-court-skill

All 80 skills in this repo
  • Kleros IPFS Upload

    internet-court/internet-court-skill

    Uploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference.

    6.6k GitHub stars~4.9k tokensUpdated 1 mo ago
    Auto-check: notes
  • 0G Compute Network Guide

    internet-court/internet-court-skill

    Guides building on the 0G Compute Network, a decentralized GPU marketplace for AI inference and fine-tuning, with SDK patterns and CLI commands.

    6.6k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • PNP Prediction Markets on Solana

    internet-court/internet-court-skill

    Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.

    6.6k GitHub stars~7.5k tokensUpdated 1 mo ago
    Auto-check: notes
  • BNB Chain MCP Server

    internet-court/internet-court-skill

    Connects an agent to the BNB Chain MCP server to read blocks and contracts, move tokens and NFTs, register ERC-8004 agents and use Greenfield storage.

    6.6k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • GenLayer ERC-7710 Connector

    internet-court/internet-court-skill

    Specifies how a GenLayer Intelligent Contract decision about an agent's performance becomes an ERC-7710 revocation or policy change, through a relayer or bridge and an EVM controller.

    6.6k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • GenLayer Agent Supervision Adapter

    internet-court/internet-court-skill

    Specifies how a GenLayer Intelligent Contract should supervise an AI agent, with review rubrics, evidence schemas and continue, warn, constrain or revoke decisions.

    6.6k GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Categories

Questions about near-api-js Developer Guide

What does near-api-js Developer Guide do?

Reference for building with near-api-js v7 in TypeScript or JavaScript: accounts, keys, signing, contract calls, tokens, unit conversion and meta-transactions on NEAR. js. It covers the Account class, JsonRpcProvider and failover providers, KeyPair and signer types, contracts with and without an ABI, seed phrase helpers, fungible token helpers and the actions used to build transactions, along with a list of RPC endpoints for mainnet, FastNEAR and testnet.

When should I use near-api-js Developer Guide?

near-api-js Developer Guide fits situations like: creating and signing NEAR transactions from a TypeScript app; calling NEAR smart contracts, with or without an ABI; managing accounts, access keys and seed phrases; implementing NEP-413 message signing for authentication.

How do I install near-api-js Developer Guide in Claude Code?

Run `npx skills add internet-court/internet-court-skill --skill near-api-js -a claude-code`. Or copy the skill folder (vendored/near/near-api-js in internet-court/internet-court-skill) into .claude/skills/near-api-js in your project. Claude Code loads it when a task matches its description.

How do I install near-api-js Developer Guide in Codex?

Run `npx skills add internet-court/internet-court-skill --skill near-api-js -a codex`. Or copy the skill folder (vendored/near/near-api-js in internet-court/internet-court-skill) into .agents/skills/near-api-js in your project. Codex loads it when a task matches its description.

Can I use near-api-js Developer Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add internet-court/internet-court-skill --skill near-api-js -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/near-api-js, .gemini/skills/near-api-js, .github/skills/near-api-js and .opencode/skills/near-api-js in your project.

What does near-api-js Developer Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: near-api-js Developer Guide is instructions for the agent only. Our summary lists: The near-api-js package; Node.js or a browser runtime.

Does near-api-js Developer Guide access the network?

SKILL.md names 4 domains. In commands or code: rpc.mainnet.near.org, free.rpc.fastnear.com, test.rpc.fastnear.com and rpc.testnet.near.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is near-api-js Developer Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does near-api-js Developer Guide use?

near-api-js Developer Guide has a licence file (from the LICENSE file in the skill folder) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does near-api-js Developer Guide use?

About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.3k tokens, read only when the agent opens those files.

What are the alternatives to near-api-js Developer Guide?

Skills that share tags, products or a category with near-api-js Developer Guide: Stellar Dev (VelaPayments/vela-payments, 131 stars), Azure AI Voicelive TS (microsoft/skills, 3.1k stars), Azure Storage Blob TS (microsoft/skills, 3.1k stars) and Sentry Node SDK (getsentry/sentry-for-ai, 268 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains near-api-js Developer Guide?

internet-court (a GitHub organization) maintains it in internet-court/internet-court-skill, which has 6,551 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on August 19, 2026.

Source: internet-court/internet-court-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.