Examples Overview
Welcome to the Starknet.go examples section. Here you'll find practical examples demonstrating how to use various features of Starknet.go.
Available Examples
Account & Deployment
- Deploy Account - Learn how to deploy a new account on Starknet
- Deploy Contract - Deploy a smart contract to Starknet
- Deploy Contract with UDC - Deploy contracts using the Universal Deployer Contract
- Declare Contract - Declare new contract classes on Starknet
Contract Interactions
- Invoke Contract - Send invoke transactions to call contract functions (simple and verbose approaches)
- Simple Call - Make simple read-only contract calls
- Read Events - Read and process contract events with filtering
Advanced Features
- Paymaster - Send transactions with paymasters (SNIP-29) for alternative fee payment
- Typed Data - Work with SNIP-12 typed data signing
- WebSocket - Use WebSocket connections for real-time updates
- Internal Transactions - Work with internal transactions
Each example includes:
- Step-by-step instructions
- Complete code examples
- Detailed explanations
- Best practices
- Common issues and solutions

