> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Internal transactions

> Subscribe to Tron internal transactions with addInternalTransaction() — filter by sender, contract, and asset.

#### `addInternalTransaction(options)`

Get some *or all* internal transactions on the network. `options` has the following structure:

```typescript theme={"system"}
{
  where?: {
    caller?: string[]
    transferTo?: string[]
  }
  include?: {
    transaction?: boolean
  }
  range?: {
    from: number
    to?: number
  }
}
```

**Data requests** are located in the `where` field:

* `caller` is the set of caller addresses responsible for the internal transactons. Leave it undefined to subscribe to internal txs from all callers.
* `transferTo` is the set of receiver addresses that the internal txn is addressed to.

Omit the `where` field to subscribe to all txs network-wide.

**Related data** can be requested via the `include` field:

* `transaction = true`: will retrieve parent transactions for each selected internal txn.

The data will be added to the `.transactions` iterable within [block data](/en/sdk/squid-sdk/tron-indexing/tron-batch-processor/context-interfaces) and made available via the `.transaction` field of each internal transaction item.

Note that internal transactions can also be requested by the other `TronBatchProcessor` methods as related data.

Selection of the exact fields to be retrieved for each transaction and the optional related data items is done with the `setFields()` method documented on the [Field selection](/en/sdk/squid-sdk/tron-indexing/tron-batch-processor/field-selection) page.

#### Example

TBA
