internet-court/internet-court-skill / vendored/starknet/starknet-js
starknet-js
VerifiedReference for building Starknet applications using starknet.js v9.x SDK, including contract interaction, account management, transaction handling, fee estimation, wallet integration, and paymaster flows.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 1.1 KB |
| SKILL.md | skill md | 13.5 KB |
| agents/openai.yaml | config | 328 B |
| package.json | manifest | 336 B |
| references/README.md | markdown | 413 B |
| references/account-lifecycle.md | markdown | 1.2 KB |
| references/fee-strategy.md | markdown | 1.1 KB |
| references/provider-hardening.md | markdown | 1.1 KB |
| scripts/account-example.ts | script | 1.0 KB |
| tsconfig.json | config | 248 B |
scripts/account-example.ts
View on GitHub/**
* Minimal starknet.js account connectivity example.
* Run:
* STARKNET_RPC_URL=... STARKNET_ACCOUNT_ADDRESS=0x... STARKNET_PRIVATE_KEY=0x... tsx scripts/account-example.ts
*/
import { Account, RpcProvider } from "starknet";
function requireEnv(name: string): string {
const value = process.env[name]?.trim();
if (!value) {
throw new Error(`Missing ${name}`);
}
return value;
}
async function main() {
const rpcUrl = requireEnv("STARKNET_RPC_URL");
const address = requireEnv("STARKNET_ACCOUNT_ADDRESS");
const privateKey = requireEnv("STARKNET_PRIVATE_KEY");
const provider = await RpcProvider.create({ nodeUrl: rpcUrl });
const account = new Account({
provider,
address,
signer: privateKey,
});
const chainId = await provider.getChainId();
console.log(
JSON.stringify({
ok: true,
accountAddress: account.address,
chainId: String(chainId),
}),
);
}
main().catch((error) => {
console.error(JSON.stringify({ ok: false, error: String(error?.message || error) }));
process.exit(1);
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |