Lumen Loop
All news
Articlestellar.orgCarl Vitullo6y ago

How Stellar.org recovers from a testnet reset

Stellar.org's new homepage features runnable code samples for network features like payments and asset issuance. To handle testnet resets every 3 months, the team built an automated script that checks for account existence and recreates necessary accounts, plus a function to return unused testnet lumens to Friendbot to prevent resource depletion.

Developer ToolsHorizonDevelopers
Lumen Loop's take

The redesigned stellar.org homepage includes interactive code examples demonstrating core Stellar features such as account creation, payments, asset issuance, and DEX offers. Since the testnet resets quarterly, the team automated account recreation by building a script that checks if known accounts exist via Horizon API and submits setup transactions if they don't. To avoid draining Friendbot's testnet lumens, they added a recoupLumens() function that merges temporary accounts back into Friendbot after use. This approach has successfully maintained example code functionality through two testnet resets without manual intervention or disruption.

Mentioned projects
1 project linked
S
Stellar Development FoundationInfrastructure & Services
Audited
InfrastructureCommunity

The Stellar Development Foundation (SDF) is a non-profit organization that supports the development and growth of the Stellar ne…

View →