Decode
Decode a transaction (signed or not) from base64-encoded Amino serialized bytes to JSON
Body
txstringOptionalExample:
SvBiXe4KPqijYZoKFFHEzJ8c2HPAfv2EFUcIhx0yPagwEhTy0vPA+GGhCEslKXa4Af0uB+mfShoMCgVzdGFrZRIDMTAwEgQQwJoM
Responses
200
The tx was successfully decoded
application/json
400
The tx was malformated
500
Server internal error
post
POST /txs/decode HTTP/1.1
Host: akt.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"tx": "SvBiXe4KPqijYZoKFFHEzJ8c2HPAfv2EFUcIhx0yPagwEhTy0vPA+GGhCEslKXa4Af0uB+mfShoMCgVzdGFrZRIDMTAwEgQQwJoM"
}
{
"msg": [
"text"
],
"fee": {
"gas": "text",
"amount": [
{
"denom": "stake",
"amount": "50"
}
]
},
"memo": "text",
"signature": {
"signature": "MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY=",
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH"
},
"account_number": "0",
"sequence": "0"
}
}