CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-solana--web3-js

Comprehensive JavaScript SDK for building Solana blockchain applications with modern architecture and type safety

93

1.29x

Evaluation93%

1.29x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates the engineer's ability to use @solana/web3.js WebSocket subscription APIs to monitor real-time account changes. The focus is on proper usage of the createSolanaRpcSubscriptions function, accountNotifications method, subscription lifecycle management, and extracting data from account notification payloads.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "WebSocket Client Creation",
      "description": "Uses createSolanaRpcSubscriptions() to create a WebSocket RPC subscriptions client with the correct endpoint URL",
      "max_score": 15
    },
    {
      "name": "Address Conversion",
      "description": "Properly converts the string account address to an Address type using the address() helper function from @solana/web3.js",
      "max_score": 10
    },
    {
      "name": "Account Subscription",
      "description": "Correctly calls accountNotifications() method on the subscriptions client with the account address to create a subscription object",
      "max_score": 20
    },
    {
      "name": "Subscription Activation",
      "description": "Properly calls .subscribe() on the subscription object to activate the subscription and obtain an async iterable",
      "max_score": 15
    },
    {
      "name": "Async Iteration",
      "description": "Uses proper async iteration (for await...of) to process notifications from the subscription async iterable",
      "max_score": 15
    },
    {
      "name": "Notification Data Extraction",
      "description": "Correctly extracts lamports balance and slot from the notification payload structure (notification.value.lamports and notification.context.slot)",
      "max_score": 15
    },
    {
      "name": "Subscription Cleanup",
      "description": "Properly unsubscribes or aborts the subscription when stopping the monitor to prevent resource leaks",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-solana--web3-js

tile.json