Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
tx_bytes?string
tx_bytes is the raw transaction.
Response Body
application/json
application/json
curl -X POST "http://localhost:1317/cosmos/tx/v1beta1/decode" \ -H "Content-Type: application/json" \ -d '{}'{
"tx": {
"body": {
"messages": [
{
"type_url": "string",
"value": "string"
}
],
"memo": "string",
"timeout_height": "string",
"unordered": true,
"timeout_timestamp": "2019-08-24T14:15:22Z",
"extension_options": [
{
"type_url": "string",
"value": "string"
}
],
"non_critical_extension_options": [
{
"type_url": "string",
"value": "string"
}
]
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"type_url": "string",
"value": "string"
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": {
"bitarray": {
"extra_bits_stored": 0,
"elems": "string"
},
"mode_infos": [
null
]
}
},
"sequence": "string"
}
],
"fee": {
"amount": [
{
"denom": "string",
"amount": "string"
}
],
"gas_limit": "string",
"payer": "string",
"granter": "string"
},
"tip": {
"amount": [
{
"denom": "string",
"amount": "string"
}
],
"tipper": "string"
}
},
"signatures": [
"string"
]
}
}{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}