# 2. Transfer TEST paying fees in TEST

Now let’s generate a second address and try sending TEST for the first time. The transaction fee will be subtracted from the amount, therefore you will pay the fee in TEST directly

With the following commands, we first generate a new address (let’s refer to it as GENERATED\_ADDRESS\_2) and then we send 50.0 TEST to this address. We can then check our history of received assets using the *getreceivedbyaddress* comman&#x64;*.*

```
.\elements-cli getnewaddress
```

{% code overflow="wrap" %}

```
.\elements-cli -named sendtoaddress address=<GENERATED_ADDRESS_2> amount=50.0 subtractfeefromamount=true
```

{% endcode %}

Although the transaction is correct, if you check the balance of the new address now, it will still be zero. That is because your transaction still needs to be confirmed in a block. So, create a new Sequentia block by using the command:

```
.\elements-cli generatetoaddress 1 <GENERATED_ADDRESS>
```

2. Now check that the 50 TEST have been sent to the new address

```
.\elements-cli getreceivedbyaddress <GENERATED_ADDRESS_2>
```

If everything is correct, your command prompt will look similar to this:

```
.\elements-cli getreceivedbyaddress ert1qspt937gpfmeghshpaucar2d94g4hftq4m5zfg4
{
"TEST": 49.99999645
}
```

Showing that the fee has been paid in TEST and has been subtracted from the amount sent (50.0)


---

# 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.sequentia.io/testnet/demo-the-no-coin-feature/2.-transfer-test-paying-fees-in-test.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.
