near-api-js
near-api-jsでNEARアプリを構築
NEAR開発者には、アカウント、コントラクト、トークン、署名に関する信頼性の高い例が必要です。このスキルは、Claude、Codex、Claude Code向けに、near-api-js v7の実践的なパターンを提供します。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "near-api-js" from https://skillstore.io/skills/internet-court-near-api-js.md and its manifest at https://skillstore.io/api/skills/internet-court-near-api-js/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「near-api-js」を使用しています。 NEAR Webアプリから支払い可能なコントラクトメソッドを呼び出す必要があります。
期待される結果:
- 選択したネットワーク向けのプロバイダーとアカウントの設定計画。
- 必要なgas、deposit、signerに関する注意事項を含むコントラクト呼び出し手順。
- 失敗したトランザクションと存在しないアカウントに対するエラー処理の確認事項。
「near-api-js」を使用しています。 NEARを保有していないユーザー向けに、ガスレスのミントフローが必要です。
期待される結果:
- ユーザー側で署名するdelegate actionのフロー。
- 有効期限の処理を含むrelayer側の送信計画。
- relayerへの信頼、nonceの有効期間、actionの適用範囲に関するセキュリティ上の注意事項。
「near-api-js」を使用しています。 NEP-413を使用したウォレットログインが必要です。
期待される結果:
- nonceの生成とメッセージ署名の手順。
- account ID、public key、signature、payloadを使用するサーバー検証チェックリスト。
- nonceの保存と有効期限によるリプレイ攻撃対策の注意事項。
セキュリティ監査
中リスクAll 105 static detections are false positives caused by Markdown fences, JavaScript template literals, documentation endpoints, cryptographic API examples, or validation examples. No prompt injection, hidden command execution, embedded live secret, or covert exfiltration behavior was found. The skill documents consequential blockchain actions and should add explicit confirmation and testnet-first guidance.
確認済みのセキュリティ上の懸念 (1)
リスク要因
⚙️ 外部コマンド (48)
🌐 ネットワークアクセス (18)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/internet-court-near-api-js/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/internet-court-near-api-js?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/internet-court-near-api-js?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-near-api-js/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/internet-court-near-api-js.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
internet-court. (2026). near-api-js security audit report (audit version 2) [Author version unspecified]. Skillstore. https://skillstore.io/skills/internet-court-near-api-js/audits/2BibTeX形式の引用
@techreport{internet-court-internet-court-near-api-js-2026,
author = {internet-court},
title = {near-api-js security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/internet-court-near-api-js/audits/2},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "near-api-js security audit report (audit version 2)"
version: "unspecified"
type: report
authors:
- name: "internet-court"
date-released: "2026-07-21"
url: "https://skillstore.io/skills/internet-court-near-api-js/audits/2"
identifiers:
- type: other
value: "skillstore:internet-court-near-api-js:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
dApp連携を作成する
NEAR Webアプリケーション向けに、アカウント、プロバイダー、コントラクト呼び出しを構築します。
トークン操作を追加する
NEAR、ファンジブルトークン、NFT、ストレージ登録のフローを実装します。
署名フローを設計する
キー管理、NEP-413認証、relayerが費用を負担するトランザクションを設計します。
これらのプロンプトを試す
near-api-js v7を使用してTypeScriptアプリをNEAR testnetに接続する方法を示してください。プロバイダーとアカウントの設定を含めてください。
near-api-jsを使用してNEARスマートコントラクトを呼び出す方法を教えてください。読み取り専用のview呼び出しと、署名付きの状態変更呼び出しを比較してください。
ファンジブルトークンを送信し、必要に応じて受取人をストレージに登録するnear-api-jsフローを設計してください。
メタトランザクション、NEP-413認証、キーローテーションに関する私のnear-api-jsの計画をレビューしてください。セキュリティと信頼性に関する懸念事項を特定してください。
ベストプラクティス
- 最初にtestnetの例を使用し、その後、エンドポイントとアカウント名を意図的に切り替えてください。
- 秘密鍵、シードフレーズ、signer関連情報をログやソース管理に含めないでください。
- 各呼び出しについて、gas、deposit、allowance、トランザクションのfinalityに関する要件を明確に設定してください。
回避
- 実際の秘密鍵やシードフレーズをプロンプトや例に貼り付けないでください。
- 文書化されたセキュリティ上の理由なく、無制限のアクセスキーallowanceを使用しないでください。
- receiver、method、amount、expirationを検証せずに、署名済みのdelegate actionを中継しないでください。
よくある質問
near-api-jsとは何ですか?
このスキルはClaude、Codex、Claude Codeをサポートしていますか?
このスキルは実際のトランザクションを送信できますか?
トークンのストレージデポジットを扱っていますか?
NEP-413認証について説明していますか?
ユーザーは秘密鍵をどのように取り扱うべきですか?
開発者情報
作成者
internet-courtライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
参照
3f6e026a3363e0954ede7bef0cfe88d4475de137
メンテナンスの新しさ
2026/7/21
利用状況
1 ダウンロード · 0 閲覧
ファイル構成