# Tx Writer

> You won't need to use this class directly. In `0xWeb` generated classes `TxDataBuilder` and `TxWriter` are used under the hood to send transactions.

#### [TxWriter](https://github.com/0xweb-org/dequanto/blob/master/src/txs/TxWriter.ts)🔗

#### Retryable `sendTransaction`  for:

* `Time-out` — if not mined within a time, will resubmit the tx with increased gas.
* `NonceTooLow` — resets the nonce automatically
* `InsufficientFunds` — a funder account can be set. If the sender doesn't have the required amount to cover the `gaslimit`, the account will be funded before sending the transaction

#### Logger

Adds [TxLogger](https://github.com/0xweb-org/dequanto/blob/master/src/txs/TxLogger.ts)🔗 to write transaction states to a log file using [everlog](https://github.com/atmajs/everlog)🔗

#### Transaction Events Parser

Automatically parses known Events, like `Transfer`. If ABI is used to build the transaction, then it will parse also all events which were defined in the ABI


---

# 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://docs.0xweb.org/dequanto/tx-writer.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.
