starknet-js
使用 starknet.js 构建 Starknet 应用
Starknet 集成需要精确处理提供程序、账户、交易和费用。此技能为 Claude、Codex 和 Claude Code 提供实用的 starknet.js v9 模式。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "starknet-js" from https://skillstore.io/skills/internet-court-starknet-js.md and its manifest at https://skillstore.io/api/skills/internet-court-starknet-js/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“starknet-js”。 我需要从 Starknet Sepolia 读取 ERC-20 余额。
预期结果:
提供程序设置方案、合约连接步骤、ABI 要求,以及保持代币数量为 BigInt 值的说明。
正在使用“starknet-js”。 我想通过 paymaster 发送赞助交易。
预期结果:
涵盖 paymaster 设置、支持的代币发现、费用估算、赞助方批准、执行和回执检查的流程。
正在使用“starknet-js”。 我的交易有时会在模拟后失败。
预期结果:
针对 nonce 刷新、RPC 一致性、资源边界、费用波动和回滚原因处理的故障排查清单。
安全审计
安全All 99 static findings are false positives after contextual review. The matches describe documentation syntax, public RPC examples, relative references, standard configuration access, or intentional environment-based key loading; no command execution, exfiltration, or prompt injection was identified.
风险因素
⚙️ 外部命令 (50)
🔑 环境变量 (5)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/internet-court-starknet-js/audits/3?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/internet-court-starknet-js?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/internet-court-starknet-js?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-starknet-js/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/internet-court-starknet-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). starknet-js security audit report (audit version 3) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/internet-court-starknet-js/audits/3BibTeX 引用
@techreport{internet-court-internet-court-starknet-js-2026,
author = {internet-court},
title = {starknet-js security audit report (audit version 3)},
institution = {Skillstore},
year = {2026},
number = {3},
url = {https://skillstore.io/skills/internet-court-starknet-js/audits/3},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "starknet-js security audit report (audit version 3)"
version: "1.0.0"
type: report
authors:
- name: "internet-court"
date-released: "2026-08-07"
url: "https://skillstore.io/skills/internet-court-starknet-js/audits/3"
identifiers:
- type: other
value: "skillstore:internet-court-starknet-js:audit:3"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
构建 Starknet dApp 原型
为前端集成规划提供程序设置、合约调用、类型化 ABI 使用和钱包连接。
构建交易服务
为账户执行、费用估算、模拟、回执和感知 nonce 的操作设计后端流程。
添加赞助交易
在提交交易前评估 paymaster 流程、赞助模式、替代 gas 代币和策略检查。
试试这些提示
使用此技能概述适用于 Sepolia 的 starknet.js v9 提供程序设置。包括链检查和基本的只读合约访问。
使用此技能设计安全的 starknet.js 账户连接流程。包括签名器边界、费用估算和交易回执处理。
使用此技能规划一个 starknet.js multicall,用于授权代币并将其存入合约。包括模拟和资源边界。
使用此技能审查 Starknet paymaster 集成。检查赞助方策略、支持的代币、费用估算和失败处理。
最佳实践
- 在提交账户执行前模拟交易并估算费用。
- 对代币数量、余额和费用值使用 BigInt,以避免精度损失。
- 将签名器凭据与应用程序配置和日志分开保存。
避免
- 不要将生产环境私钥粘贴到示例、提示词、日志或已提交的文件中。
- 不要在生产环境的 Starknet 配置中依赖隐式 RPC 默认值。
- 不要将确定性的验证错误或 calldata 错误当作临时网络故障进行重试。
常见问题
此技能是否支持 starknet.js v9?
它能编写 Cairo 智能合约吗?
它会执行安全审计吗?
它能帮助进行费用估算吗?
它需要私钥吗?
Claude Code 或 Codex 能使用此技能吗?
开发者详情
许可证
Apache-2.0
作者版本
v1.0.0
Skillstore 修订
r2
版本提示
可安装内容已发生变化,但作者没有更新声明的版本号。
引用
1c2ebded2116f8124f45dba86a2e567f56e64d8e
维护新鲜度
2026/8/8
使用量
3 次下载 · 0 次浏览
文件结构