Last updated 1 year ago
Since: cosmos-sdk 0.47
TxEncodeRequest is the request type for the Service.TxEncode RPC method.
tx is the transaction to encode.
TxEncodeResponse is the response type for the Service.TxEncode method.
POST /cosmos/tx/v1beta1/encode HTTP/1.1 Host: atom.nownodes.io Content-Type: application/json Accept: */* Content-Length: 626 { "tx": { "body": { "messages": [ { "type_url": "text", "value": "text" } ], "memo": "text", "timeout_height": "text", "unordered": true, "extension_options": [ { "type_url": "text", "value": "text" } ], "non_critical_extension_options": [ { "type_url": "text", "value": "text" } ] }, "auth_info": { "signer_infos": [ { "public_key": { "type_url": "text", "value": "text" }, "mode_info": { "single": { "mode": "SIGN_MODE_UNSPECIFIED" }, "multi": "[Circular Reference]" }, "sequence": "text" } ], "fee": { "amount": [ { "denom": "text", "amount": "text" } ], "gas_limit": "text", "payer": "text", "granter": "text" }, "tip": { "amount": [ { "denom": "text", "amount": "text" } ], "tipper": "text" } }, "signatures": [ "text" ] } }
A successful response.
{ "tx_bytes": "text" }