# Creating an outgoing transaction with a signature

Send Hycon from a wallet via a signature to another Hycon wallet. All transactions include a *n* HYC miner fee.

**Request Body - `Content-Type: application/json;charset=utf-8`**

| Parameter   | Type   | Required | Description                                            |
| ----------- | ------ | -------- | ------------------------------------------------------ |
| `signature` | string | Yes      | A signature generated from a Hycon private key         |
| `from`      | string | Yes      | A Hycon wallet address of the sender                   |
| `to`        | string | Yes      | A Hycon wallet address of the receiver                 |
| `amount`    | string | Yes      | Amount of Hycon to send to recipient                   |
| `fee`       | string | Yes      | Transaction fee, in Hycon, to complete the transaction |
| `nonce`     | number | No       | The transaction number sent from the Hycon address     |
| `recovery`  | number | No       | Transaction recovery value                             |

**Response - `200 OK, application/json`**

| Parameter | Type   | Description                                                |
| --------- | ------ | ---------------------------------------------------------- |
| `txHash`  | string | Hash representation of the transaction after it is created |

**Response Error Table**

| Status | Error               | Message                                           |
| ------ | ------------------- | ------------------------------------------------- |
| 404    | `INVALID_PARAMETER` | insufficient wallet balance to send transaction   |
| 404    | `INVALID_PARAMETER` | transaction information or signature is incorrect |
| 404    | `INVALID_PARAMETER` | could not queue transaction                       |

POST/api/v1/tx

**Example request**

```
$ curl -X POST http://localhost:2442/api/v1/tx \
    -H 'Content-Type: application/json;charset=utf-8' \
    -d '{
	  "signature": "65b4f0c4e5594117e7a7951e60dc81e5701731c61830a30e1bd8199a469f6f90a",
	  "from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
      "to": "H3zYvzxTDGEF9fZtmzLV78h38J4BR2qnL",
      "amount": "25.995459977",
      "fee": "0.000001",
      "nonce": 1,
      "recovery": 0
    }'
```

**Response (Success)**

```
{ "txHash": "A3CpvMaSm92mYbShh
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teamhycon.gitbook.io/docs/api-v1-4/api-v1-1/creating-an-outgoing-transaction-with-a-signature.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
