# RelatedTransaction
The related_transaction allows implementations to link together multiple transactions. An unpopulated network identifier indicates that the related transaction is on the same network.
## Example Usage
```typescript
import { RelatedTransaction } from "icpmcp-rosetta-api";
let value: RelatedTransaction = {
networkIdentifier: {
blockchain: "bitcoin",
network: "mainnet",
subNetworkIdentifier: {
network: "shard 1",
metadata: {},
},
},
transactionIdentifier: {
hash: "0x2f23fd8cca835af21f3ac375bac601f97ead75f2e79143bdf71fe2c4be043e8f",
},
direction: "forward",
};
```
## Fields
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `networkIdentifier` | [models.NetworkIdentifier](../models/networkidentifier.md) | :heavy_minus_sign: | The network_identifier specifies which network a particular object is associated with. |
| `transactionIdentifier` | [models.TransactionIdentifier](../models/transactionidentifier.md) | :heavy_check_mark: | The transaction_identifier uniquely identifies a transaction in a particular network and block or in the mempool. |
| `direction` | [models.Direction](../models/direction.md) | :heavy_check_mark: | Used by RelatedTransaction to indicate the direction of the relation (i.e. cross-shard/cross-network sends may reference `backward` to an earlier transaction and async execution may reference `forward`). Can be used to indicate if a transaction relation is from child to parent or the reverse. |