Skip to content
Skillv1.0.0

quicknode-hello-world

QuickNode hello world — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like "quicknode hello world", "quicknode-he

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/quicknode-hello-world/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill quicknode-hello-world. Copyright stays with the author (MIT).

QuickNode Hello World

Overview

Make your first blockchain queries: get block number, check ETH balance, read a smart contract.

Prerequisites

  • Completed quicknode-install-auth with endpoint URL

Instructions

Step 1: Get Block Number

import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider(process.env.QUICKNODE_ENDPOINT);

const blockNumber = await provider.getBlockNumber();
console.log(`Current block: ${blockNumber}`);

Step 2: Check ETH Balance

const address = '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'; // vitalik.eth
const balance = await provider.getBalance(address);
console.log(`Balance: ${ethers.formatEther(balance)} ETH`);

Step 3: Read Smart Contract (ERC-20 Token)

const usdcAddress = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48';
const abi = ['function balanceOf(address) view returns (uint256)', 'function decimals() view returns (uint8)'];
const usdc = new ethers.Contract(usdcAddress, abi, provider);

const decimals = await usdc.decimals();
const balance = await usdc.balanceOf(address);
console.log(`USDC balance: ${ethers.formatUnits(balance, decimals)}`);

Step 4: Get Transaction Receipt

const txHash = '0xabc...'; // Any transaction hash
const receipt = await provider.getTransactionReceipt(txHash);
console.log(`Status: ${receipt?.status === 1 ? 'Success' : 'Failed'}`);
console.log(`Gas used: ${receipt?.gasUsed.toString()}`);

Output

  • Block number retrieved
  • ETH balance checked
  • ERC-20 contract read
  • Transaction receipt fetched

Error Handling

Error Cause Solution
null receipt TX pending or invalid hash Wait for confirmation or verify hash
call revert exception Wrong ABI or address Verify contract address and ABI
Balance is 0n Address has no ETH Try a known address like vitalik.eth

Resources

Next Steps

Build transaction workflows: quicknode-core-workflow-a

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-quicknode-hel-59624e/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-quicknode-hel-59624e.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-quicknode-hel-59624e",
  "kind": "skill",
  "name": "quicknode-hello-world",
  "description": "QuickNode hello world — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like \"quicknode hello world\", \"quicknode-hello-world\", \"blockchain RPC\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general_chat"
    ],
    "tags": [
      "skill-md",
      "saas",
      "quicknode",
      "blockchain",
      "web3",
      "rpc",
      "ethereum",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "QuickNode hello world — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like \"quicknode hello world\", \"quicknode-hello-world\", \"blockchain RPC\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/quicknode-hello-world/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/quicknode-hello-world/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/quicknode-hello-world/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(npm:*),",
      "Bash(curl:*),",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# QuickNode Hello World\n\n## Overview\n\nMake your first blockchain queries: get block number, check ETH balance, read a smart contract.\n\n## Prerequisites\n\n- Completed `quicknode-install-auth` with endpoint URL\n\n## Instructions\n\n### Step 1: Get Block Number\n\n```typescript\nimport { ethers } from 'ethers';\nconst provider = new ethers.JsonRpcProvider(process.env.QUICKNODE_ENDPOINT);\n\nconst blockNumber = await provider.getBlockNumber();\nconsole.log(`Current block: ${blockNumber}`);\n```\n\n### Step 2: Check ETH Balance\n\n```typescript\nconst address = '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'; // vital",
  "cost": {
    "context_tokens": 534
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-quicknode-hel-59624e/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.