Last updated 1 year ago
Encode a transaction (signed or not) from JSON to base64-encoded Amino serialized bytes
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" } } }
The tx was successfully decoded and re-encoded
{ "tx": "The base64-encoded Amino-serialized bytes for the tx" }