Since: cosmos-sdk 0.47
TxEncodeRequest is the request type for the Service.TxEncode RPC method.
Tx is the standard type used for broadcasting transactions.
A successful response.
tx_bytes is the encoded transaction bytes.
const response = await fetch('https://coreum.nownodes.io/cosmos/tx/v1beta1/encode', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "tx_bytes": "Ynl0ZXM=" }