Encode
Encode a transaction (signed or not) from JSON to base64-encoded Amino serialized bytes
Body
Responses
200
The tx was successfully decoded and re-encoded
application/json
400
The tx was malformated
500
Server internal error
post
POST /txs/encode HTTP/1.1
Host: akt.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 365
{
"tx": {
"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"
}
}
}
{
"tx": "The base64-encoded Amino-serialized bytes for the tx"
}
Last updated