starknet-network-facts

Solid

Starknet network-level constraints and protocol facts that impact contract safety and agent reasoning.

AI & Automation 80 stars 25 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
78
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Starknet Network Facts ## When to Use - Reasoning about chain behavior assumptions in contract logic. - Validating time, fee, and transaction-version dependencies. ## When NOT to Use - Contract implementation details unrelated to chain behavior. ## Quick Start 1. Identify assumptions in code about tx versions, fee tokens, and timing. 2. Verify assumptions against current network behavior before release. 3. Add tests for boundary behavior tied to block timing or tx metadata. ## Core Focus - transaction version expectations - fee token and bounds assumptions - block-time-sensitive logic - sequencer and inclusion model implications ## Workflow - Main network-facts workflow: [default workflow](workflows/default.md) ## References - Module index: [references index](references/README.md) ## starknet.js Example ```ts import { RpcProvider } from "starknet"; const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC! }); const latest = await provider.getBlock("latest"); console.log({ blockNumber: latest.block_number, l1GasPrice: latest.l1_gas_price, l2GasPrice: latest.l2_gas_price, }); ``` ## Error Codes and Recovery | Code | Meaning | Recovery | | --- | --- | --- | | `SNF-001` | RPC/network fact unavailable | Retry with a fallback RPC and compare outputs before acting. | | `SNF-002` | Conflicting tx-version assumption | Re-check references and update guards/tests for current tx version behavior. | | `SNF-003` | Fee-token assumption mismatch | Add ex...

Details

Author
keep-starknet-strange
Repository
keep-starknet-strange/starknet-agentic
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category