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