ERC-721 Enumerable NFT
An ERC-721 with Enumerable extension, allowing on-chain iteration of all minted tokens.
Annotated, copy-pasteable blockchain code examples in Solidity, Vyper, Rust, and JavaScript.
18 snippets
An ERC-721 with Enumerable extension, allowing on-chain iteration of all minted tokens.
A minimal smart contract for Stellar's Soroban platform written in Rust.
Batch multiple contract reads into a single RPC call using viem's multicall.
Compute Keccak-256 hashes in Python, matching Solidity's keccak256 function.
A minimal ERC-20 token implementation in Vyper, showcasing Vyper's clean syntax and built-in overflow protection.
Deploy a smart contract using viem with bytecode and ABI.
A Solana counter program using the Anchor framework with PDA-based state storage.
Implement ERC-2981 royalty standard to inform marketplaces of creator royalties.
Transfer SPL tokens between wallets using @solana/web3.js and @solana/spl-token.
Generate a Merkle tree for whitelist verification and verify proofs on-chain.
Send a UserOp through an ERC-4337 bundler using viem and permissionless.
Derive hierarchical deterministic (HD) wallet addresses from a mnemonic using BIP-32/BIP-44 in Python.
Read token prices from Chainlink price feeds in a Solidity contract.
Build a Merkle tree and verify proofs in Python for whitelist verification.
A standard ERC-4626 tokenized vault that accepts deposits, issues shares, and accrues yield from an underlying strategy.
A basic staking contract where users stake tokens and earn rewards proportional to their stake.
A simple incrementing counter smart contract for CosmWasm / Cosmos chains.
Estimate gas for contract interactions and check balance before sending.