# TransactionGet()

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                                               |
| --------- | -------- | --------------------------------------------------------- |
| `PoolSeq` | ​`long`​ | Pool Sequence Number(Round Number)                        |
| `Index`   | `int`    | Index number(Transaction number of that particular block) |

```csharp
TransactionGet(424078, 0);
```

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

## Example

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

```csharp
Connector connect_ = new Connector("95.111.224.219", 9091);
NodeApi.TransactionGetResult txs = connect_.TransactionGet(424078, 0);
Console.WriteLine(txs);
```

{% endtab %}

{% tab title="Python" %}

```python
Connect_ =  Connector("165.22.212.253:9090")
print(Connect_.TransactionGet(5,0))
```

{% endtab %}

{% tab title="Javascript" %}

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

{% endtab %}
{% endtabs %}

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

#### Output of Example

Output is printed via ObjectDumper

```scheme
{TransactionGetResult}
  Status: {APIResponse}
    Code: 0
    Message: "Success: 0.008740"
  Found: true
  State: TransactionState.INVALID
  RoundNum: 0
  Transaction: {SealedTransaction}
    Id: {TransactionId}
      PoolSeq: 424078
      Index: 0
    Trxn: {Transaction}
      Id: 11
      Source: 
        byte[]
      Target: 
        byte[]
      Amount: {Amount}
        Integral: 50001
        Fraction: 0
      Balance: {Amount}
        Integral: 0
        Fraction: 0
      Currency: 1
      Signature: ...
      SmartContract: null
      Fee: {AmountCommission}
        Commission: 17279
      TimeCreation: 1628252105145
      UserFields: null
      Type: TransactionType.TT_Transfer
      SmartInfo: null
      ExtraFee: null
      PoolNumber: 424078
      UsedContracts: null
```


---

# 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://centr.gitbook.io/netcs/api/functions/transactionget.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.
