This is a Next.js project bootstrapped with c3
.
Soroban CLI 21.0.0-rc.1
stellar 21.0.0-rc.1 (bc3031e7c2609d7e57ef6f3d8a482091cc0e1eab)
soroban-env 21.0.1 (f2b734b6360ae04ba730307be3988619dd0f59a3)
soroban-env interface version 90194313216
stellar-xdr 21.0.1 (da0cbc6f75eaf03423810b8e9d730a03dfa8517e)
xdr curr (1a04392432dacc0092caaeae22a600ea1af3c6a5)
-
Install soroban cli
cargo install --locked [email protected]
-
npm i
-
npm run contract:setup
if it's the first time running it,npm run contract:redeploy
if you want to deploy to a new contract -
npm run preview
-
curl --location --request POST 'http://localhost:8788'
-
curl --location --request GET 'http://localhost:8788'
-
curl --location --request POST 'http://localhost:8788/?invest=true'
-> txSuccess -
curl --location --request GET 'http://localhost:8788'
-> check new data on the entry -
curl --location --request POST 'http://localhost:8788/?invest=true'
try to invest again -> txFailed