Skip to content

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

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