# SendTransaction()

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

{% content-ref url="../../getting-started/understanding-connector-object" %}
[understanding-connector-object](https://centr.gitbook.io/netcs/getting-started/understanding-connector-object)
{% endcontent-ref %}

## Function Call&#x20;

| Field         | Type                                                                      | Description                                                                                              |
| ------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `Integeral`   | ​`int`​                                                                   | Integral is the value that comes before the dot                                                          |
| `Fraction`    | `long`                                                                    | Fraction is the value that comes after the dot                                                           |
| `Fee`         | `double`                                                                  | Amount of fee you want to maximum spend                                                                  |
| `PublicKey`   | `string`                                                                  | Base58 ed25519 PublicKey of Sender                                                                       |
| `PrivateKey`  | `string`                                                                  | Base58 ed25519 PrivateKey of Sender                                                                      |
| `Target`      | `string`                                                                  | Base58 ed25519 PublicKey of Receiver                                                                     |
| `UserData`    | `byte[]`                                                                  | **Optional:** Userdata/extra information you want to store along with the Transaction                    |
| `TxsID`       | `long`                                                                    | **Optional:** Specify TransactionId for high performance applications                                    |
| `Transaction` | [Transaction](https://centr.gitbook.io/netcs/api/basic-types/transaction) | **Optional:** Meant for developers that are common with forming a transaction for the Credits Blockchain |

```csharp
SendTransaction(0,0,0.1,"Enter PublicKey","Enter Privatekey","Enter Target PublicKey");
```

{% hint style="info" %}
Return value of function: [TransactionFlowResult](https://centr.gitbook.io/netcs/api/result-types/transactionflowresult)
{% endhint %}

## Example

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

```csharp
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.TransactionFlowResult Sendedtransaction = connect_.SendTransaction(0,0,1"Publickey","Privatekey","Target");
Console.WriteLine(Sendedtransaction);
```

{% endtab %}

{% tab title="Python" %}

```python
Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.SendTransaction(0,0,0.1,"PublicKey","PrivateKey","Target"))
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
Currently not operational
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Return value of function: [TransactionFlowResult](https://centr.gitbook.io/netcs/api/result-types/transactionflowresult)
{% endhint %}

#### Output of Example

Output is printed via ObjectDumper

```scheme
{TransactionFlowResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success:  4C00000000003E016E91849568F4864728D5CEB361CC42458B498A1BF279FAC9F22A2D99632FCCE6FA9348421D6A9E63383F4C1DE319A3B7940163A41CE4238D4B0E920EE3C5881300000000000000000000664C0100"
  Smart_contract_result: null
  RoundNum: 1716714
  Id: {TransactionId}
    PoolSeq: 1716717
    Index: 0
  Fee: {Amount}
    Integral: 0
    Fraction: 8740234375000000
  ExtraFee: null
```
