near-kit
使用 TypeScript 建置 NEAR 應用程式
NEAR 整合通常需要交易、錢包、金鑰與測試模式。此技能為 TypeScript 應用程式、React hooks、錢包與 sandbox 測試提供精簡的 near-kit 範例。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "near-kit" from https://skillstore.io/skills/internet-court-near-kit.md and its manifest at https://skillstore.io/api/skills/internet-court-near-kit/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「near-kit」。 我需要在 React 中建立連接錢包的留言簿呼叫。
預期結果:
- 使用 NearProvider、錢包連線狀態與簽署合約呼叫的元件層級整合計畫。
- 關於簽署者身分、gas 設定、等待中狀態與使用者可見錯誤的說明。
正在使用「near-kit」。 我需要在本機部署並測試 NEAR 合約。
預期結果:
- 包含帳戶建立、合約部署、初始化與斷言的 sandbox 測試流程。
- 關於唯一帳戶名稱、啟動逾時與測試後清理作業的指引。
正在使用「near-kit」。 我需要安全的 NEP-413 登入流程。
預期結果:
- 用於訊息簽署、挑戰建立、簽章驗證與 nonce 到期的用戶端和伺服器流程。
- 針對收件者比對、防止重放與受信任後端儲存的安全檢查。
安全審計
安全All 99 static findings are false positives caused by Markdown fences, TypeScript template literals, placeholders, or legitimate NEAR development documentation. The reviewed materials contain no embedded credentials, prompt-injection text, unauthorized command execution, or evidence of data exfiltration. Key-handling examples should still be used only with protected server-side secrets.
風險因素
⚙️ 外部命令 (41)
🌐 網路存取 (4)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/internet-court-near-kit/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/internet-court-near-kit?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/internet-court-near-kit?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-near-kit/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/internet-court-near-kit.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-kit security audit report (audit version 2) [Author version unspecified]. Skillstore. https://skillstore.io/skills/internet-court-near-kit/audits/2BibTeX 引用
@techreport{internet-court-internet-court-near-kit-2026,
author = {internet-court},
title = {near-kit security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/internet-court-near-kit/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-kit 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-kit/audits/2"
identifiers:
- type: other
value: "skillstore:internet-court-near-kit:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
建立 dApp 錢包流程
使用 React hooks 與錢包轉接器連接帳戶、呼叫合約並顯示餘額。
建置伺服器端 NEAR 自動化
為受信任的伺服器程序設定簽署交易、金鑰儲存區、relayer 流程與訊息驗證。
測試合約整合
使用 sandbox 範例建立帳戶、部署 WASM 合約、呼叫方法並驗證整合行為。
試試這些提示
向我展示如何使用 near-kit 在 testnet 上讀取 NEAR 合約 view 方法。請包含匯入、用戶端設定與錯誤處理說明。
協助我將 @near-kit/react 加入 React 應用程式。使用以錢包為基礎的簽署,並展示 provider、帳戶狀態與合約呼叫。
規劃一筆 near-kit 交易,用於建立帳戶、注入資金、部署合約並初始化。請包含 gas 與 deposit 指引。
檢視我的 near-kit 金鑰管理與 relayer 設計。檢查私鑰處理、nonce 驗證、收件者檢查與僅限伺服器的邊界。
最佳實務
- 在瀏覽器中使用錢包轉接器,並僅在受信任的伺服器環境中保存私鑰。
- 以針對目標網路審查過的值,取代範例帳戶、URL、gas 與 deposit 值。
- 為登入與 meta-transaction 流程加入明確的 nonce、收件者、到期時間與簽署者檢查。
避免
- 請勿將真實私鑰或助記詞貼入提示、範例、日誌或原始碼檔案。
- 請勿在正式環境部署中使用預留位置網域、合約 ID 或帳戶 ID。
- 請勿讓瀏覽器程式碼管理伺服器私鑰或 relayer 簽署金鑰。
常見問題
此技能可協助我建置什麼?
它支援 Claude、Codex 和 Claude Code 嗎?
我可以將它用於瀏覽器錢包嗎?
我可以將它用於後端簽署嗎?
它能取代 NEAR 文件嗎?
需要採取哪些安全性措施?
開發者詳細資訊
授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
3f6e026a3363e0954ede7bef0cfe88d4475de137
維護新鮮度
2026/7/21
使用量
1 次下載 · 0 次瀏覽
檔案結構