Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKWhy do BaseReq is required for POST request? & How to use 'generate-only' parameter?Forum ↗

Why do BaseReq is required for POST request? & How to use 'generate-only' parameter?

Cosmos-SDK1 posts566 viewsLast activity Feb 2019
PA
pamin2222OP
Feb 2019

I am following the name-service tutorial.

GitHub

cosmos/sdk-tutorials

Tutorials for building modules for the Cosmos SDK. Contribute to cosmos/sdk-tutorials development by creating an account on GitHub.

The rest server request is embedded withBaseReq. I was wondering is it okay to send plain text password via an API to do sign the message on the node before broadcasting it to Blockchain.

Should the signing process occur on the client application side?

============================

I try to pass ‘generate-only’: ‘true’ parameter with BaseReq, but still, don’t understand whether we have to sign it after that or it doesn’t need to be signed and ready to be executed after broadcasting.

Is there any example of interacting with cosmos-sdk (GO) application via REST API using the ‘generate-only’ parameter?

← Back to Discussions