---
title: "TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes."
method: POST
path: "/cosmos/tx/v1beta1/encode/amino"
tags: ["Service"]
---

# TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.

`POST /cosmos/tx/v1beta1/encode/amino`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/docs/cosmos/tx/v1beta1/encode/amino/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CosmosTxV1beta1TxEncodeAminoRequest: TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method.
  - `aminoJson` string

## Response `200`

A successful response.

- CosmosTxV1beta1TxEncodeAminoResponse: TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method.
  - `aminoBinary` string, byte

## Other responses

- `default`: An unexpected error response.

## Changes

- **2024-01-08** `b8d29710efb5`: 1 info
  - endpoint added
- **2023-11-17** `f416fba3183f`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/changes/cosmos/tx/v1beta1/encode/amino/post.md)

---

[API](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api.md) - [All operations](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/llms.txt) - [OpenAPI document](https://skmtc.dev/haqq-network/apis/haqq-network-grpc-api/revisions/2d0419923f40?raw)
