Lumen Loop
All media
VideoYouTubeKoxy 👩‍💻January 6, 20251y ago6:51

Let’s Get Soroban: Constructor.

Tutorial on Soroban smart contract constructors, explaining how they work during contract deployment, with practical examples of declaring constructors, setting storage, and deploying to testnet.

SorobanDevelopersEducation
Lumen Loop's take

Kaxi explains Soroban smart contract constructors in detail, covering how they are special functions called only once during contract deployment. The tutorial walks through declaring a constructor function using underscore notation, setting storage values like counters, and creating getter functions to retrieve stored data. Practical examples show how to pass constructor arguments in brackets, test the contract locally, and deploy to testnet using the Stellar CLI with the appropriate flags and arguments. The session demonstrates a complete increment contract example with deployment commands and verification.