-
Notifications
You must be signed in to change notification settings - Fork 69
How to develop DApp on Massa
Nathan Seva edited this page Oct 26, 2022
·
5 revisions
With Thyra web on chain, you can deploy decentralized applications:
- deploy website through Thyra web on chain (https://github.com/massalabs/thyra#-web-on-chain)
- deploy smart contracts
Your frontend application can interact with your smart contract by signing a transaction. To secure the transaction, the user will be asked to enter its wallet password. For this, the application must call a Thyra API endpoint: /cmd/executeFunction
.
To see the full API documentation run this command:
docker run -p 81:8080 -e SWAGGER_JSON=/swagger.yml -v /full_path_to_thyra/api/swagger/server/restapi/resource/swagger.yml:/swagger.yml swaggerapi/swagger-ui
(dont forget to replace full_path_to_thyra
by the path of Thyra in your computer)
And navigate to http://localhost:81
Or simply navigate to https://massa-thyra.stoplight.io/docs/thyra/gupnaaemc7rao-thyra-server.
To debug your application, you can call the node (set params.start.period accordingly):
curl --location --request POST 'https://inno.massa.net/test13' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "get_filtered_sc_output_event",
"params": [
{
"start": {
"period":177740,
"thread":0
},
"end": null,
"emitter_address": null,
"original_caller_address": null,
"original_operation_id": null
}
],
"id": 0
}'