Skip to content

OffchainLabs/arbitrum-docs / .agents/skills/arbitrum-best-practices

arbitrum-best-practices

Verified

Arbitrum L2 development best practices. Use when implementing bridges, Orbit chains, SDK integrations, or debugging cross-chain transactions. Triggers on Arbitrum, L2, rollup, bridge, retryable, Orbit, Nitro, or cross-chain contexts.

rules/rpc-cast-transaction.md

View on GitHub
---
title: Use Cast for Transaction Debugging
impact: HIGH
impactDescription: essential for debugging
tags: rpc, cast, debugging
---

## Use Cast for Transaction Debugging

Foundry's `cast` is the fastest way to inspect transactions on Arbitrum. Start with `cast tx` and `cast receipt` for any debugging workflow.

**Basic debugging sequence:**

```bash
# Get transaction details
cast tx 0x<hash> --rpc-url https://arb1.arbitrum.io/rpc

# Get receipt with status (1=success, 0=failure)
cast receipt 0x<hash> --rpc-url https://arb1.arbitrum.io/rpc

# Decode calldata
cast calldata-decode "transfer(address,uint256)" 0xa9059cbb...
```

**Arbitrum-specific queries:**

```bash
# Check retryable ticket timeout
cast call 0x000000000000000000000000000000000000006E \
  "getTimeout(bytes32)(uint64)" <ticketId> \
  --rpc-url https://arb1.arbitrum.io/rpc

# Get L1 gas component estimate
cast call 0x00000000000000000000000000000000000000C8 \
  "gasEstimateL1Component(address,bool,bytes)" <to> false <data> \
  --rpc-url https://arb1.arbitrum.io/rpc
```

Key precompiles: ArbSys (0x64), ArbRetryableTx (0x6E), NodeInterface (0xC8).

For cast reference, see [Foundry Book](https://book.getfoundry.sh/reference/cast/).
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall