Skip to content
Skillv1.0.0

quicknode-core-workflow-a

QuickNode core workflow a — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like "quicknode core workflow a", "quic

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-core-workflow-a/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill quicknode-core-workflow-a. Copyright stays with the author (MIT).

QuickNode Core Workflow A

Overview

Build EVM transaction workflows: send ETH, interact with contracts, listen for events, and handle gas estimation.

Prerequisites

  • Completed quicknode-hello-world
  • A funded wallet (use testnet for development)

Instructions

Step 1: Send ETH Transaction

import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider(process.env.QUICKNODE_ENDPOINT);
const wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);

const tx = await wallet.sendTransaction({
  to: '0xRecipientAddress',
  value: ethers.parseEther('0.01'),
});
console.log(`TX sent: ${tx.hash}`);
const receipt = await tx.wait();
console.log(`Confirmed in block ${receipt!.blockNumber}, gas used: ${receipt!.gasUsed}`);

Step 2: Call Contract Write Function

const contractAddress = '0xYourContract';
const abi = ['function transfer(address to, uint256 amount) returns (bool)'];
const contract = new ethers.Contract(contractAddress, abi, wallet);

const tx = await contract.transfer('0xRecipient', ethers.parseUnits('100', 18));
const receipt = await tx.wait();
console.log(`Transfer confirmed: ${receipt!.hash}`);

Step 3: Listen for Events (WebSocket)

const wsProvider = new ethers.WebSocketProvider(process.env.QUICKNODE_WSS);
const contract = new ethers.Contract(contractAddress, ['event Transfer(address indexed from, address indexed to, uint256 value)'], wsProvider);

contract.on('Transfer', (from, to, value, event) => {
  console.log(`Transfer: ${from} -> ${to}: ${ethers.formatUnits(value, 18)}`);
});

Step 4: Gas Estimation

const gasEstimate = await contract.transfer.estimateGas('0xRecipient', ethers.parseUnits('100', 18));
const feeData = await provider.getFeeData();
const totalCost = gasEstimate * (feeData.gasPrice || 0n);
console.log(`Estimated gas: ${gasEstimate}, cost: ${ethers.formatEther(totalCost)} ETH`);

Output

  • ETH transfer with receipt confirmation
  • Smart contract interaction
  • Real-time event listening via WebSocket
  • Gas estimation before transactions

Error Handling

Error Cause Solution
insufficient funds Wallet balance too low Fund wallet or reduce amount
nonce too low Nonce conflict Get latest nonce: provider.getTransactionCount(address)
gas required exceeds allowance Contract revert Check contract requirements

Resources

Next Steps

NFT and token APIs: quicknode-core-workflow-b

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-cor-3833f1/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-cor-3833f1.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-quicknode-cor-3833f1",
  "kind": "skill",
  "name": "quicknode-core-workflow-a",
  "description": "QuickNode core workflow a — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like \"quicknode core workflow a\", \"quicknode-core-workflow-a\", \"blockchain RPC\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "saas",
      "quicknode",
      "blockchain",
      "web3",
      "rpc",
      "ethereum",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "QuickNode core workflow a — blockchain RPC and Web3 infrastructure integration. Use when working with QuickNode for blockchain development. Trigger with phrases like \"quicknode core workflow a\", \"quicknode-core-workflow-a\", \"blockchain RPC\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/quicknode-core-workflow-a/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/quicknode-core-workflow-a/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/quicknode-core-workflow-a/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(npm:*),",
      "Bash(curl:*),",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# QuickNode Core Workflow A\n\n## Overview\n\nBuild EVM transaction workflows: send ETH, interact with contracts, listen for events, and handle gas estimation.\n\n## Prerequisites\n\n- Completed `quicknode-hello-world`\n- A funded wallet (use testnet for development)\n\n## Instructions\n\n### Step 1: Send ETH Transaction\n\n```typescript\nimport { ethers } from 'ethers';\n\nconst provider = new ethers.JsonRpcProvider(process.env.QUICKNODE_ENDPOINT);\nconst wallet = new ethers.Wallet(process.env.PRIVATE_KEY!, provider);\n\nconst tx = await wallet.sendTransaction({\n  to: '0xRecipientAddress',\n  value: ethers.parseEt",
  "cost": {
    "context_tokens": 665
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-quicknode-cor-3833f1/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.