Skip to main content

2024-09-19

ยท One min read
Carsten Jacobsen
Senior Developer Advocate

Agenda: Discord thread

SDF DevRel team member Carsten Jacobsen showed how to build a simple Hello World dapp based on a Soroban smart contract and Next.js through these steps:

  1. Create the default Hello World smart contract using the Stellar CLI
  2. Create TypeScript bindings (package) using the Stellar CLI
  3. Create the default Next.js using the npx create-next-app command
  4. Add and link the TypeScript binding package to the Next.js project
  5. Create a simple frontend with a form to submit a string
  6. Import the package in the Next.js page, and setup a client
  7. Create submit-function to send form value to the smart contract
  8. Use useState to store the smart contract response and display it