---
title: "Sign a Tx"
method: POST
path: "/tx/sign"
tags: ["ICS20"]
---

# Sign a Tx

`POST /tx/sign`

## Request

- The document declares no server URL.
- Auth: none declared

Sign a Tx providing locally stored account and according password

## Request body

- object
  - `tx` StdTx
    - `msg` Msg[]
    - `fee` object
      - `gas` string
      - `amount` Coin[]
        - `denom` string
        - `amount` string
    - `memo` string
    - `signature` object
      - `signature` string
      - `pub_key` object
        - `type` string
        - `value` string
      - `account_number` string
      - `sequence` string
  - `name` string
  - `password` string
  - `chain_id` string
  - `account_number` string
  - `sequence` string
  - `append_sig` boolean

## Response `200`

The signed Tx

- StdTx
  - `msg` Msg[]
  - `fee` object
    - `gas` string
    - `amount` Coin[]
      - `denom` string
      - `amount` string
  - `memo` string
  - `signature` object
    - `signature` string
    - `pub_key` object
      - `type` string
      - `value` string
    - `account_number` string
    - `sequence` string

## Other responses

- `400`: The Tx was malformated or key doesn't exist
- `401`: Key password is wrong
- `500`: Server internal error

## Changes

- **2026-07-17** `66846564e1ee`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2019-01-29** `e0d7f3adc53c`: 1 info
  - endpoint added
- **2019-01-29** `7f670f71b0eb`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/changes/tx/sign/post.md)

---

[API](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos.md) - [All operations](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/llms.txt) - [OpenAPI document](https://skmtc.dev/bnb-chain/apis/gaia-lite-for-cosmos/revisions/66846564e1ee?raw)
