Skip to Content

Submit data to Avail DA

While the SubscriptionID generated by your Light Client is unique, and you need it to initially connect to the client, you can use ANY UUID4 number  as the request_id in your request.

Sample Request:

{"type":"submit","request_id":"4a482bb0-3c22-475d-a2b8-af1c27aa2636","message":{"data":"dGVzdAo="}}

HOW TO SUBMIT DATA USING THE LIGHT CLIENT?

  1. To use this method you need to run your Light Client in the app-client mode. You can then submit data directly to the appID you configured while booting up the Light Client.

  2. You can only pass Base64 encoded data to be submitted via the Light Client. You can use this website  to encode & decode your data into the required formats.

Sample Response:

{"topic":"data-transaction-submitted","request_id":"4a482bb0-3c22-475d-a2b8-af1c27aa2636","message":{"block_number":597725,"block_hash":"0x84803b93bf96aea90fae8fcb21cae70d310783ae8e9c4f4e1d696cec2791c0e3","hash":"0x290efdc7856fd29ec406c610f79aaa3c8079c11f8338093efad739b454bef0ac","index":1}}
Last updated on