---
title: "TxEncode encodes the transaction."
method: POST
path: "/cosmos/tx/v1beta1/encode"
tags: ["Service"]
---

# TxEncode encodes the transaction.

`POST /cosmos/tx/v1beta1/encode`

## Request

- Base URL: `https://api.kyve.network` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kyve.network/cosmos/tx/v1beta1/encode`
- Auth: none declared

Since: cosmos-sdk 0.47

## Request body

- CosmosTxV1beta1TxEncodeRequest (unresolved $ref)

## Response `200`

A successful response.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/kyve/apis/kyve-chain-rest-api.md) · [All operations](https://skmtc.dev/kyve/apis/kyve-chain-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kyve/apis/kyve-chain-rest-api/revisions/f4c44127d484?raw)
