🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Meganode Skill

by @aiden-cao

Provides NodeReal MegaNode blockchain infrastructure APIs for 25+ chains including BSC, Ethereum, opBNB, Optimism, Polygon, Arbitrum, and Klaytn. Covers stan...

Versionv0.1.0
πŸ“‹ Tips & Best Practices

RPC Best Practices

  • Use HTTPS for standard queries; WSS only for real-time subscriptions
  • Implement exponential backoff on rate limit errors (code -32005)
  • Batch multiple calls when possible (max 500 per batch)
  • Cache eth_blockNumber results -- block time is ~3s on BSC, ~12s on Ethereum
  • Compute Unit Management

  • Monitor CU usage via the MegaNode dashboard or Portal API
  • Use lower-cost methods when possible (e.g., eth_getBalance at 15 CU vs eth_call at 20 CU)
  • Avoid expensive debug/trace methods in production hot paths
  • WebSocket bandwidth is billed at 0.04 CU/byte -- filter subscriptions tightly
  • See references/pricing-reference.md for full CU cost tables and plan comparison
  • Security Best Practices

  • Store API keys in environment variables, never in source code
  • Never expose API keys in client-side JavaScript
  • Use JWT authentication for production deployments
  • Never handle private keys directly -- use wallet signers (ethers.js Wallet, viem Account)
  • Error Handling

  • Rate limit exceeded: -32005 -- implement backoff and retry
  • Out of CUs: -32005 with message "ran out of cu" -- upgrade plan or wait for monthly reset
  • Method not supported: Check references/supported-chains.md for chain-specific method availability

  • View on ClawHub
    TERMINAL
    clawhub install meganode-skill

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’