Encode a protobuf transaction
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Encodes a JSON transaction into its protobuf byte representation. A live response example is intentionally omitted because this request accepts transaction data.
Body
TxEncodeRequest is the request type for the Cosmos.TxEncode RPC method.
txobjecttx is the transaction to encode.
Show child attributes
bodyobjectTxBody is the body of a transaction that all signers sign over.
Show child attributes
messagesArray<object>Messages to execute. Their required signers determine the order of signer_infos and signatures; the first unique signer is the primary fee payer.
Show child attributes
@typestringFully qualified protobuf message type, prefixed by a slash.
memostringmemo is any arbitrary note/comment to be added to the transaction. WARNING: in clients, any publicly exposed text should not be called memo, but should be called note instead (see
timeout_heightstringLast block height at which the transaction can be accepted; zero disables the height timeout.
extension_optionsArray<object>List of extension options entries returned or accepted by the operation.
Show child attributes
@typestringFully qualified protobuf message type, prefixed by a slash.
non_critical_extension_optionsArray<object>List of non critical extension options entries returned or accepted by the operation.
Show child attributes
@typestringFully qualified protobuf message type, prefixed by a slash.
unorderedbooleanWhether unordered.
timeout_timestampstring | nullRFC 3339 timestamp representing timeout timestamp.
auth_infoobjectAuthInfo describes the fee and signer modes that are used to sign a transaction.
Show child attributes
signer_infosArray<object>Object containing signer infos data.
Show child attributes
public_keyobjectArbitrary serialized protobuf message. @type identifies the embedded message type; its decoded fields appear beside @type in JSON, while well-known types use value.
Show child attributes
@typestringFully qualified protobuf message type, prefixed by a slash.
mode_infoobjectModeInfo describes the signing mode of a single or nested multisig signer.
Show child attributes
singleobjectStructured single data used by the operation.
Show child attributes
modestringSIGN_MODE_UNSPECIFIEDSchema for mode.
multiobjectStructured multi data used by the operation.
Show child attributes
bitarrayobjectObject containing bitarray data.
Show child attributes
extra_bits_storedinteger<int64>Number of meaningful bits in the last byte of a compact bit array.
elemsstring<byte>Base64-encoded bytes of a compact bit array.
mode_infosArray<object>List of mode infos entries returned or accepted by the operation.
sequencestringsequence is the sequence of the account, which describes the number of committed transactions signed by a given address. It is used to prevent replay attacks.
feeobjectObject containing fee data.
Show child attributes
amountArray<object>Token amount expressed in the denomination's smallest units.
Show child attributes
denomstringSchema for denom.
amountstringToken amount expressed in the denomination's smallest units.
gas_limitstringMaximum gas units authorized for the transaction.
payerstringObject containing payer data.
granterstringBech32-encoded address of the account granting authorization.
tipobject | nullTip is the optional tip used for transactions fees paid in another denom. This field is ignored if the chain didn't enable tips, i.e. didn't add the TipDecorator in its posthandler.
Show child attributes
amountArray<object>Token amount expressed in the denomination's smallest units.
Show child attributes
denomstringSchema for denom.
amountstringToken amount expressed in the denomination's smallest units.
tipperstringBech32 address of the account paying the transaction tip.
signaturesArray<string>signatures is a list of signatures that matches the length and order of AuthInfo's signer_infos to allow connecting signature meta information like public key and signing mode by position.
Response
A successful response.
Invalid request.
An unexpected error response.