Code Examples
45 canonical records · Knowledge build70e37656b46a4379
- ABI Encode/Decode (Python)
- AccessControl Role-Based Permissions
- Anchor Program — Solana Counter
- Batch Read with Multicall
- BIP39 Mnemonic to Key Pair (Python)
- Chainlink Price Feed (Solidity)
- CosmWasm Counter Contract
- Deploy Contract with viem
- Dutch Auction Contract
- EIP-712 Typed Data Signing
- ERC-1155 Multi-Token Contract
- ERC-20 Token Contract
- ERC-4337 Account Abstraction
- ERC-4626 Tokenized Vault
- ERC-721 Enumerable NFT
- ERC-721 NFT Contract
- Estimate Gas with viem
- Gas Price Monitoring (Python)
- Governor Voting Contract
- HD Wallet Derivation (Python)
- Interact with Smart Contract using viem
- IPFS Upload with Pinata
- Keccak256 Hashing (Python)
- Listen to Contract Events with ethers.js
- Merkle Proof Verification (Python)
- Merkle Tree Whitelist
- Multi-Signature Wallet
- NFT Royalty Enforcement (ERC-2981)
- Pausable Emergency Stop
- Read Contract Events with ethers.js
- Read ETH Balance with ethers.js
- Reentrancy Guard Pattern
- Sign and Send Transaction (ethers.js)
- Sign Message with ethers.js
- Simple AMM Swap (Solidity)
- Simple Staking Contract
- Simple Vault Contract
- Solana Program: Increment Counter
- Solana Token Transfer (TypeScript)
- Soroban Hello World
- Token Vesting Contract
- UUPS Upgradeable Proxy
- Vyper ERC-20 Token
- Vyper Simple Auction
- Web3.py Event Listening