> For the complete documentation index, see [llms.txt](https://validators.spicenet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://validators.spicenet.io/working-with-transactions/5.2-generating-transactions.md).

# 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.
