# 5.2 Generating Transactions

To generate a transaction, you'll use the `sov-cli` tool. Let's go through the process of creating a transfer transaction:

1. Create a JSON file named `transfer.json` with the following content:

{% code overflow="wrap" %}

```json
{
  "transfer": {
    "to": "sov1zgfpyysjzgfpyysjzgfpyysjzgfpyysjzgfpyysjzgfpyysjzgfqve8h6h",
    "coins": {
      "amount": 200,
      "token_id": "token_1rwrh8gn2py0dl4vv65twgctmlwck6esm2as9dftumcw89kqqn3nqrduss6"
    }
  }
}
```

{% endcode %}

This JSON represents a transfer of 200 tokens to the specified address.

2. Use `sov-cli` to import the transaction:

{% code overflow="wrap" %}

```bash
./target/debug/sov-cli transactions import from-file bank --max-fee 100000000 --path ./transfer.json
```

{% endcode %}

This command imports the transaction into the local transaction pool. The `--max-fee` parameter sets the maximum gas fee you're willing to pay for this transaction.


---

# 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://validators.spicenet.io/working-with-transactions/5.2-generating-transactions.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.
