Starknet network facts

From keep-starknet-strange/starknet-agentic · View interactive version

Starknet network facts is an AI agent skill from the GitHub repository keep-starknet-strange/starknet-agentic. Starknet network-level constraints and protocol facts that impact contract safety and agent reasoning.

How to use this skill

Skill file

Starknet Network Facts

When to Use

When NOT to Use

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

Workflow

References

starknet.js Example

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 explicit fee-token checks and fee-bound regression tests. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.