> For the complete documentation index, see [llms.txt](https://centr.gitbook.io/netcs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://centr.gitbook.io/netcs/api/functions/actualfeeget.md).

# ActualFeeGet()

Retrieve Actual Fee with given size

Before calling the function make sure you have the Connector object initialized.&#x20;

{% content-ref url="/pages/-MgM38pBUeXL96\_AW6Jy" %}
[Understanding Connector Object](/netcs/getting-started/understanding-connector-object.md)
{% endcontent-ref %}

## Function Call&#x20;

| Field             | Type    | Description                                              |
| ----------------- | ------- | -------------------------------------------------------- |
| `TransactionSize` | ​`int`​ | Input the size of the transaction to retrieve Actual Fee |

```csharp
ActualFeeGet(1);
```

{% hint style="info" %}
Return value of function: [ActualFeeGetResult](/netcs/api/result-types/actualfeegetresult.md)
{% endhint %}

## Example

{% tabs %}
{% tab title="C#" %}

```csharp
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.ActualFeeGetResult ActualFee = connect_.ActualFeeGet(1);
Console.WriteLine(ActualFee);
```

{% endtab %}

{% tab title="Python" %}

```python
Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.ActualFeeGet(1))
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
var connect_ = new Connector("194.163.152.177", 9091);
connect_.ActualFeeGet().then((res) => {connect_.Close();console.log(res); });
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Return value of function: [ActualFeeGetResult](/netcs/api/result-types/actualfeegetresult.md)
{% endhint %}

#### Output of Example

Output is printed via ObjectDumper

{% hint style="warning" %}
Keep in mind the outcome commission needs to be normalized to normal values
{% endhint %}

```scheme
{ActualFeeGetResult}
  Fee: {AmountCommission}
    Commission: 17279

```
