alchemy-hello-world

Featured

Create a minimal Alchemy Web3 example: get ETH balance, fetch NFTs, read token balances. Use when starting blockchain development, testing Alchemy setup, or learning basic blockchain query patterns. Trigger: "alchemy hello world", "alchemy example", "alchemy quick start", "get ETH balance", "fetch NFTs alchemy".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alchemy Hello World ## Overview Minimal working examples with the real Alchemy SDK: get ETH balance, fetch NFTs for a wallet, read ERC-20 token balances, and subscribe to pending transactions. ## Prerequisites - Completed `alchemy-install-auth` setup - `alchemy-sdk` installed (`npm install alchemy-sdk`) - Valid API key configured ## Instructions ### Step 1: Get ETH Balance ```typescript // src/hello-world/get-balance.ts import { Alchemy, Network, Utils } from 'alchemy-sdk'; const alchemy = new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.ETH_MAINNET, }); async function getBalance(address: string) { const balanceWei = await alchemy.core.getBalance(address); const balanceEth = Utils.formatEther(balanceWei); console.log(`Balance of ${address}: ${balanceEth} ETH`); return balanceEth; } // Query Vitalik's address getBalance('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045').catch(console.error); ``` ### Step 2: Fetch NFTs for a Wallet ```typescript // src/hello-world/get-nfts.ts import { Alchemy, Network } from 'alchemy-sdk'; const alchemy = new Alchemy({ apiKey: process.env.ALCHEMY_API_KEY, network: Network.ETH_MAINNET, }); async function getNftsForOwner(owner: string) { const nfts = await alchemy.nft.getNftsForOwner(owner); console.log(`Total NFTs: ${nfts.totalCount}`); for (const nft of nfts.ownedNfts.slice(0, 5)) { console.log(` ${nft.contract.name} — ${nft.name || nft.tokenId}`); console.log(` Contract: ${nft.co...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

alchemy-core-workflow-a

Build a complete wallet portfolio tracker using Alchemy Enhanced APIs. Use when implementing token balance dashboards, NFT galleries, transaction history views, or wallet analytics applications. Trigger: "alchemy wallet tracker", "alchemy portfolio", "alchemy token dashboard", "alchemy transaction history", "build dApp with alchemy".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-core-workflow-b

Build NFT collection explorer and smart contract interaction with Alchemy. Use when fetching NFT metadata, building galleries, reading contract state, or implementing NFT marketplace features. Trigger: "alchemy NFT", "alchemy smart contract", "alchemy collection", "alchemy NFT metadata", "alchemy contract read".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-install-auth

Install the Alchemy SDK and configure API key authentication for Web3 development. Use when setting up blockchain API access, creating an Alchemy app, or configuring multi-chain RPC endpoints. Trigger: "install alchemy", "setup alchemy", "alchemy auth", "alchemy API key".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-local-dev-loop

Set up local Web3 development workflow with Alchemy, Hardhat, and testnets. Use when configuring local blockchain dev, testing with Sepolia faucets, or setting up hot-reload for smart contract development. Trigger: "alchemy local dev", "alchemy hardhat", "alchemy testnet setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

alchemy-reference-architecture

Implement reference architecture for Alchemy-powered Web3 applications. Use when designing dApp infrastructure, planning multi-chain deployments, or structuring a production blockchain application. Trigger: "alchemy architecture", "dApp architecture", "alchemy project structure", "web3 system design", "alchemy multi-chain design".

2,266 Updated today
jeremylongshore